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
- Author:
- Pascal-Nicolas Becker (p dot becker at tu hyphen berlin dot de)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intError while authenticating against the registration agency.static final intWe got a answer from a registration agency that could not be parsed.static final intThe registration agency was unable to parse our request.static final intDefault.static final intAn error arose while metadata conversion.static final intA DOI cannot be created, registered, reserved, and so on because it is already used for another object.static final intA specified DOI does not exists.static final intYou tried to reserve or register a DOI that is marked as DELETED.static final intA DOI cannot be created, registered, reserved and so on because it uses a foreign prefix.static final intA internal error occurred either in the registration agency or in the DOIConnector.static final intA DOI and a provided object does not match.static final intSome registration agencies request that a DOI gets reserved before it can be registered.static final intDSpace did not allowed to manipulate the metadata of an DSpaceObject.static final intAn identifier supplied as DOI could not be recognized. -
Constructor Summary
ConstructorsConstructorDescriptionDOIIdentifierException(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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
CODE_NOT_SET
public static final int CODE_NOT_SETDefault.- See Also:
-
DOI_DOES_NOT_EXIST
public static final int DOI_DOES_NOT_EXISTA specified DOI does not exists.- See Also:
-
DOI_ALREADY_EXISTS
public static final int DOI_ALREADY_EXISTSA DOI cannot be created, registered, reserved, and so on because it is already used for another object.- See Also:
-
FOREIGN_DOI
public static final int FOREIGN_DOIA DOI cannot be created, registered, reserved and so on because it uses a foreign prefix.- See Also:
-
BAD_ANSWER
public static final int BAD_ANSWERWe 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:
-
BAD_REQUEST
public static final int BAD_REQUESTThe registration agency was unable to parse our request. Either they changed there API or the DOIConnector does not implement it properly.- See Also:
-
RESERVE_FIRST
public static final int RESERVE_FIRSTSome 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:
-
AUTHENTICATION_ERROR
public static final int AUTHENTICATION_ERRORError while authenticating against the registration agency.- See Also:
-
INTERNAL_ERROR
public static final int INTERNAL_ERRORA internal error occurred either in the registration agency or in the DOIConnector.- See Also:
-
CONVERSION_ERROR
public static final int CONVERSION_ERRORAn error arose while metadata conversion.- See Also:
-
MISMATCH
public static final int MISMATCHA 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:
-
UNRECOGNIZED
public static final int UNRECOGNIZEDAn identifier supplied as DOI could not be recognized.- See Also:
-
UNAUTHORIZED_METADATA_MANIPULATION
public static final int UNAUTHORIZED_METADATA_MANIPULATIONDSpace did not allowed to manipulate the metadata of an DSpaceObject.- See Also:
-
DOI_IS_DELETED
public static final int DOI_IS_DELETEDYou tried to reserve or register a DOI that is marked as DELETED.- See Also:
-
-
Constructor Details
-
DOIIdentifierException
public DOIIdentifierException() -
DOIIdentifierException
public DOIIdentifierException(int code) -
DOIIdentifierException
-
DOIIdentifierException
-
DOIIdentifierException
-
DOIIdentifierException
-
DOIIdentifierException
-
DOIIdentifierException
-
-
Method Details
-
codeToString
-
getCode
public int getCode() -
getMessage
- Overrides:
getMessagein classThrowable
-