- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.shredzone.acme4j.exception.AcmeException
-
- org.shredzone.acme4j.exception.AcmeServerException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AcmeRateLimitedException
,AcmeUnauthorizedException
,AcmeUserActionRequiredException
public class AcmeServerException extends AcmeException
The ACME server returned an error. The exception contains aProblem
document containing the exact cause of the error.For some special cases, subclasses of this exception are thrown, so they can be handled individually.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AcmeServerException(Problem problem)
Creates a newAcmeServerException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Problem
getProblem()
Returns theProblem
that caused the exceptionURI
getType()
Returns the error type.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AcmeServerException
public AcmeServerException(Problem problem)
Creates a newAcmeServerException
.- Parameters:
problem
-Problem
that caused the exception
-
-
Method Detail
-
getProblem
public Problem getProblem()
Returns theProblem
that caused the exception
-
-