Class ScepProtocolException
java.lang.Object
java.lang.Throwable
java.lang.Exception
zeroecho.pki.server.scep.ScepProtocolException
- All Implemented Interfaces:
Serializable
Signals a SCEP protocol-level error that maps to an HTTP error response.
The httpStatus() returns the HTTP status code to send to the client.
The exception message is safe for inclusion in a plain-text response body.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScepProtocolException(int httpStatus, String message) Creates a SCEP protocol exception.ScepProtocolException(int httpStatus, String message, Throwable cause) Creates a SCEP protocol exception with a cause.ScepProtocolException(String message) Creates a SCEP protocol exception with status 500.ScepProtocolException(String message, Throwable cause) Creates a SCEP protocol exception with status 500 and a cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ScepProtocolException
Creates a SCEP protocol exception.- Parameters:
httpStatus- HTTP status code (4xx or 5xx)message- human-readable error description
-
ScepProtocolException
-
ScepProtocolException
Creates a SCEP protocol exception with status 500.- Parameters:
message- human-readable error description
-
ScepProtocolException
-
-
Method Details
-
httpStatus
public int httpStatus()Returns the HTTP status code.- Returns:
- HTTP status code in the 400–599 range
-