java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.shredzone.acme4j.exception.AcmeLazyLoadingException
- Alle implementierten Schnittstellen:
Serializable
A runtime exception that is thrown when an
AcmeException
occured while trying
to lazy-load a resource from the ACME server. It contains the original cause of the
exception and a reference to the resource that could not be lazy-loaded. It is usually
thrown by getter methods, so the API is not polluted with checked exceptions.- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAcmeLazyLoadingException
(Class<? extends AcmeResource> type, URL location, AcmeException cause) Creates a newAcmeLazyLoadingException
.AcmeLazyLoadingException
(AcmeResource resource, AcmeException cause) Creates a newAcmeLazyLoadingException
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the location of the resource that could not be loaded.Class
<? extends AcmeResource> getType()
Returns theAcmeResource
type of the resource that could not be loaded.Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
AcmeLazyLoadingException
Creates a newAcmeLazyLoadingException
.- Parameter:
resource
-AcmeResource
to be loadedcause
-AcmeException
that was raised
-
AcmeLazyLoadingException
public AcmeLazyLoadingException(Class<? extends AcmeResource> type, URL location, AcmeException cause) Creates a newAcmeLazyLoadingException
.This constructor is used if there is no actual instance of the resource.
- Parameter:
type
-AcmeResource
type to be loadedlocation
- Resource locationcause
-AcmeException
that was raised- Seit:
- 2.8
-
-
Methodendetails
-
getType
Returns theAcmeResource
type of the resource that could not be loaded. -
getLocation
Returns the location of the resource that could not be loaded.
-