Package org.projectnessie.error
Interface NessieError
@Immutable
public interface NessieError
Represents Nessie-specific API error details.
All clients receive all properties that are not marked with an @since Javadoc tag.
Those properties, like the getErrorDetails() property, will only be returned to clients,
if they sent the appropriate Nessie-Client-Spec header. The header value is an integer
that must be greater than or equal to the version noted in the @since Javadoc tag.
-
Method Summary
Modifier and TypeMethodDescriptionClient-side error message related to the processing of the error response.Deprecated.default ErrorCodeNessie-specific error code.Details for this particular error.default <T extends NessieErrorDetails>
TgetErrorDetailsAsOrNull(Class<T> type) default StringThe full error message, including HTTP status, reason, server- and client-side exception stack traces.default StringNessie-specific Error message.Reason phrase for the HTTP status code.Server-side exception stack trace related to this error (if available).intHTTP status code of this error.
-
Method Details
-
getStatus
int getStatus()HTTP status code of this error. -
getReason
String getReason()Reason phrase for the HTTP status code. -
getMessage
Nessie-specific Error message. -
getErrorCode
Nessie-specific error code. -
getErrorDetails
Details for this particular error.- Since:
- Nessie Client spec 2, only serialized to clients, if clients send the HTTP header
Nessie-Client-Specwith an integer value that is at least 2.
-
getErrorDetailsAsOrNull
-
getServerStackTrace
Server-side exception stack trace related to this error (if available). -
getClientProcessingException
Deprecated. -
getClientProcessingError
Client-side error message related to the processing of the error response.This generally represents any errors related to the decoding of the payload returned by the server to describe the error.
-
getFullMessage
The full error message, including HTTP status, reason, server- and client-side exception stack traces.
-
getClientProcessingError()