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
public class OrcidClientException extends RuntimeException
Exception throwable from class that implementsOrcidClientin case of error response from the ORCID registry.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringINVALID_GRANT_MESSAGE
-
Constructor Summary
Constructors Constructor Description OrcidClientException(int status, String content)OrcidClientException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStatus()booleanisInvalidGrantException()Returns true if the exception is related to an invalid grant error (authentication code non valid), false otherwise-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
INVALID_GRANT_MESSAGE
public static final String INVALID_GRANT_MESSAGE
- See Also:
- Constant Field Values
-
-