org.apache.kafka.common.errors
Class ApiException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.kafka.common.KafkaException
                  extended by org.apache.kafka.common.errors.ApiException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidTopicException, OffsetMetadataTooLarge, RecordBatchTooLargeException, RecordTooLargeException, RetriableException, UnknownServerException

public abstract class ApiException
extends KafkaException

Any API exception that is part of the public protocol and should be a subclass of this class and be part of this package.

See Also:
Serialized Form

Constructor Summary
ApiException()
           
ApiException(java.lang.String message)
           
ApiException(java.lang.String message, java.lang.Throwable cause)
           
ApiException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Throwable fillInStackTrace()
           
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiException

public ApiException(java.lang.String message,
                    java.lang.Throwable cause)

ApiException

public ApiException(java.lang.String message)

ApiException

public ApiException(java.lang.Throwable cause)

ApiException

public ApiException()
Method Detail

fillInStackTrace

public java.lang.Throwable fillInStackTrace()
Overrides:
fillInStackTrace in class java.lang.Throwable