Package errors
Class BaseError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- errors.BaseError
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ClientErrors.AuthenticationTimeoutError,ClientErrors.BadRequestError,ClientErrors.ConflictError,ClientErrors.ExpectationFailedError,ClientErrors.FailedDependencyError,ClientErrors.ForbiddenError,ClientErrors.GoneError,ClientErrors.ImATeapotError,ClientErrors.LengthRequiredError,ClientErrors.LockedError,ClientErrors.MethodNotAllowedError,ClientErrors.MisdirectedRequestError,ClientErrors.NotAcceptableError,ClientErrors.NotFoundError,ClientErrors.PaymentRequiredError,ClientErrors.PolicyNotFulfilledError,ClientErrors.PreconditionFailedError,ClientErrors.PreconditionRequiredError,ClientErrors.ProxyAuthenticationRequiredError,ClientErrors.RequestedRangeNotSatisfiableError,ClientErrors.RequestHeaderTooLargeError,ClientErrors.RequestTimeoutError,ClientErrors.RequestTooLargeError,ClientErrors.TooManyRequestsError,ClientErrors.UnauthorizedError,ClientErrors.UnavaliableForLegalReasonsError,ClientErrors.UnprocessableEntityError,ClientErrors.UnsupportedMediaTypeError,ClientErrors.UpgradeRequiredError,ClientErrors.URLTooLongError,InformationErrors.ContinueError,InformationErrors.ProcessingError,InformationErrors.SwitchingProtocolsError,RedirectErrors.FoundError,RedirectErrors.MovedError,RedirectErrors.MultipleChoicesError,RedirectErrors.NotModifiedError,RedirectErrors.PermanentRedirectError,RedirectErrors.SeeOtherError,RedirectErrors.TemporaryRedirectError,RedirectErrors.UseProxyError,ServerErrors.BadGatewayError,ServerErrors.BandwithLimitExceededError,ServerErrors.GatewayTimeoutError,ServerErrors.InsufficientStorageError,ServerErrors.InternalServerError,ServerErrors.LoopDetectedError,ServerErrors.NetworkAuthenticationRequiredError,ServerErrors.NotImplementedError,ServerErrors.ServiceUnavaliableError,ServerErrors.VersionNotSupportedError
public class BaseError extends java.lang.RuntimeException- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaseError.ErrorCategory
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringadditionalInformationBaseError.ErrorCategorycategory@NonNull ErrorCodescodebooleanfatalbooleanisEngineError
-
Constructor Summary
Constructors Constructor Description BaseError(@NonNull ErrorCodes code, @NonNull java.lang.String message, BaseError.ErrorCategory category)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BaseErrordeserialize(java.lang.String value)static booleanisEngineError(java.lang.Exception error)java.lang.Stringserialize()
-
-
-
Field Detail
-
code
@NonNull public @NonNull ErrorCodes code
-
additionalInformation
public java.lang.String additionalInformation
-
category
public BaseError.ErrorCategory category
-
fatal
public boolean fatal
-
isEngineError
public boolean isEngineError
-
-
Constructor Detail
-
BaseError
public BaseError(@NonNull @NonNull ErrorCodes code, @NonNull @NonNull java.lang.String message, BaseError.ErrorCategory category)
-
-
Method Detail
-
deserialize
public static BaseError deserialize(java.lang.String value)
-
serialize
public java.lang.String serialize() throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, com.fasterxml.jackson.core.JsonProcessingException- Throws:
java.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
isEngineError
public static boolean isEngineError(java.lang.Exception error)
-
-