Class RegistryExceptions
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.pravega.schemaregistry.client.exceptions.RegistryExceptions
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
RegistryExceptions.BadArgumentException,RegistryExceptions.CodecTypeNotRegisteredException,RegistryExceptions.ConnectionException,RegistryExceptions.InternalServerError,RegistryExceptions.MalformedSchemaException,RegistryExceptions.PreconditionFailedException,RegistryExceptions.ResourceNotFoundException,RegistryExceptions.SchemaValidationFailedException,RegistryExceptions.SerializationMismatchException,RegistryExceptions.UnauthorizedException
public class RegistryExceptions extends java.lang.RuntimeException- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRegistryExceptions.BadArgumentExceptionService rejected the supplied arguments with bad argument exception.static classRegistryExceptions.CodecTypeNotRegisteredExceptionThe requested codecType is not added to the group.static classRegistryExceptions.ConnectionExceptionException type due to failure in connecting to the service.static classRegistryExceptions.InternalServerErrorThe request processing failed on the service.static classRegistryExceptions.MalformedSchemaExceptionSchema is malformed.static classRegistryExceptions.PreconditionFailedExceptionService rejected the request because the expected precondition for the requested action was not satisfied.static classRegistryExceptions.ResourceNotFoundExceptionRequested resource not found.static interfaceRegistryExceptions.RetryableExceptionTrait to identify whether an exception is retryable or not.static classRegistryExceptions.SchemaValidationFailedExceptionThe schema validation failed as it was validated against the Compatibility set for the group.static classRegistryExceptions.SerializationMismatchExceptionSerialization format is not allowed for the group.static classRegistryExceptions.TypeEnum to describe the type of exception.static classRegistryExceptions.UnauthorizedExceptionUser is unauthorized to perform requested action.
-
Constructor Summary
Constructors Constructor Description RegistryExceptions(java.lang.String errorMessage)Construct a StoreException.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RegistryExceptionscreate(RegistryExceptions.Type type, java.lang.String errorMessage)Factory method to construct Store exceptions.
-
-
-
Method Detail
-
create
public static RegistryExceptions create(RegistryExceptions.Type type, java.lang.String errorMessage)
Factory method to construct Store exceptions.- Parameters:
type- Type of Exception.errorMessage- The detailed error message.- Returns:
- Instance of type of StoreException.
-
-