Package org.dspace.identifier.doi
Class DOIIdentifierException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.dspace.identifier.IdentifierException
-
- org.dspace.identifier.doi.DOIIdentifierException
-
- All Implemented Interfaces:
Serializable
public class DOIIdentifierException extends IdentifierException
- Author:
- Pascal-Nicolas Becker (p dot becker at tu hyphen berlin dot de)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intAUTHENTICATION_ERRORError while authenticating against the registration agency.static intBAD_ANSWERWe got a answer from a registration agency that could not be parsed.static intBAD_REQUESTThe registration agency was unable to parse our request.static intCODE_NOT_SETDefault.static intCONVERSION_ERRORAn error arose while metadata conversion.static intDOI_ALREADY_EXISTSA DOI cannot be created, registered, reserved, and so on because it is already used for another object.static intDOI_DOES_NOT_EXISTA specified DOI does not exists.static intDOI_IS_DELETEDYou tried to reserve or register a DOI that is marked as DELETED.static intFOREIGN_DOIA DOI cannot be created, registered, reserved and so on because it uses a foreign prefix.static intINTERNAL_ERRORA internal error occurred either in the registration agency or in the DOIConnector.static intMISMATCHA DOI and a provided object does not match.static intRESERVE_FIRSTSome registration agencies request that a DOI gets reserved before it can be registered.static intUNAUTHORIZED_METADATA_MANIPULATIONDSpace did not allowed to manipulate the metadata of an DSpaceObject.static intUNRECOGNIZEDAn identifier supplied as DOI could not be recognized.
-
Constructor Summary
Constructors Constructor Description DOIIdentifierException()DOIIdentifierException(int code)DOIIdentifierException(String message)DOIIdentifierException(String message, int code)DOIIdentifierException(String message, Throwable cause)DOIIdentifierException(String message, Throwable cause, int code)DOIIdentifierException(Throwable cause)DOIIdentifierException(Throwable cause, int code)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringcodeToString(int code)intgetCode()StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
CODE_NOT_SET
public static final int CODE_NOT_SET
Default.- See Also:
- Constant Field Values
-
DOI_DOES_NOT_EXIST
public static final int DOI_DOES_NOT_EXIST
A specified DOI does not exists.- See Also:
- Constant Field Values
-
DOI_ALREADY_EXISTS
public static final int DOI_ALREADY_EXISTS
A DOI cannot be created, registered, reserved, and so on because it is already used for another object.- See Also:
- Constant Field Values
-
FOREIGN_DOI
public static final int FOREIGN_DOI
A DOI cannot be created, registered, reserved and so on because it uses a foreign prefix.- See Also:
- Constant Field Values
-
BAD_ANSWER
public static final int BAD_ANSWER
We got a answer from a registration agency that could not be parsed. Either they changed there API or the DOIConnector does not implement it properly.- See Also:
- Constant Field Values
-
BAD_REQUEST
public static final int BAD_REQUEST
The registration agency was unable to parse our request. Either they changed there API or the DOIConnector does not implement it properly.- See Also:
- Constant Field Values
-
RESERVE_FIRST
public static final int RESERVE_FIRST
Some registration agencies request that a DOI gets reserved before it can be registered. This error code signals that a unreserved DOI should be registered and that the registration agency denied it.- See Also:
- Constant Field Values
-
AUTHENTICATION_ERROR
public static final int AUTHENTICATION_ERROR
Error while authenticating against the registration agency.- See Also:
- Constant Field Values
-
INTERNAL_ERROR
public static final int INTERNAL_ERROR
A internal error occurred either in the registration agency or in the DOIConnector.- See Also:
- Constant Field Values
-
CONVERSION_ERROR
public static final int CONVERSION_ERROR
An error arose while metadata conversion.- See Also:
- Constant Field Values
-
MISMATCH
public static final int MISMATCH
A DOI and a provided object does not match. This error occurs if you try to connect an object with a DOI that is reserved or registered for another object.- See Also:
- Constant Field Values
-
UNRECOGNIZED
public static final int UNRECOGNIZED
An identifier supplied as DOI could not be recognized.- See Also:
- Constant Field Values
-
UNAUTHORIZED_METADATA_MANIPULATION
public static final int UNAUTHORIZED_METADATA_MANIPULATION
DSpace did not allowed to manipulate the metadata of an DSpaceObject.- See Also:
- Constant Field Values
-
DOI_IS_DELETED
public static final int DOI_IS_DELETED
You tried to reserve or register a DOI that is marked as DELETED.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DOIIdentifierException
public DOIIdentifierException()
-
DOIIdentifierException
public DOIIdentifierException(int code)
-
DOIIdentifierException
public DOIIdentifierException(String message)
-
DOIIdentifierException
public DOIIdentifierException(String message, int code)
-
DOIIdentifierException
public DOIIdentifierException(Throwable cause)
-
DOIIdentifierException
public DOIIdentifierException(Throwable cause, int code)
-
-
Method Detail
-
codeToString
public static String codeToString(int code)
-
getCode
public int getCode()
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-