Package org.dspace.orcid.exception
Class OrcidClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.dspace.orcid.exception.OrcidClientException
- All Implemented Interfaces:
Serializable
Exception throwable from class that implements
OrcidClient in case of
error response from the ORCID registry.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOrcidClientException(int status, String content) OrcidClientException(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanReturns true if the exception is related to an invalid grant error (authentication code non valid), false otherwiseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_GRANT_MESSAGE
- See Also:
-
-
Constructor Details
-
OrcidClientException
-
OrcidClientException
-
-
Method Details
-
getStatus
public int getStatus() -
isInvalidGrantException
public boolean isInvalidGrantException()Returns true if the exception is related to an invalid grant error (authentication code non valid), false otherwise- Returns:
- the check result
-