Package org.apache.kafka.common.errors
Class ResourceNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.kafka.common.KafkaException
-
- org.apache.kafka.common.errors.ApiException
-
- org.apache.kafka.common.errors.ResourceNotFoundException
-
- All Implemented Interfaces:
Serializable
public class ResourceNotFoundException extends ApiException
Exception thrown due to a request for a resource that does not exist.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceNotFoundException(String message)
ConstructorResourceNotFoundException(String resource, String message)
ConstructorResourceNotFoundException(String resource, String message, Throwable cause)
ConstructorResourceNotFoundException(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
resource()
-
Methods inherited from class org.apache.kafka.common.errors.ApiException
fillInStackTrace
-
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ResourceNotFoundException
public ResourceNotFoundException(String message)
Constructor- Parameters:
message
- the exception's message
-
ResourceNotFoundException
public ResourceNotFoundException(String message, Throwable cause)
- Parameters:
message
- the exception's messagecause
- the exception's cause
-
ResourceNotFoundException
public ResourceNotFoundException(String resource, String message)
Constructor- Parameters:
resource
- the (potentially null) resource that was not foundmessage
- the exception's message
-
-
Method Detail
-
resource
public String resource()
- Returns:
- the (potentially null) resource that was not found
-
-