public class DOIIdentifierException extends IdentifierException
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTHENTICATION_ERROR
Error while authenticating against the registration agency.
|
static int |
BAD_ANSWER
We got a answer from a registration agency that could not be parsed.
|
static int |
BAD_REQUEST
The registration agency was unable to parse our request.
|
static int |
CODE_NOT_SET
Default.
|
static int |
CONVERSION_ERROR
An error arose while metadata conversion.
|
static int |
DOI_ALREADY_EXISTS
A DOI cannot be created, registered, reserved, and so on because it is
already used for another object.
|
static int |
DOI_DOES_NOT_EXIST
A specified DOI does not exists.
|
static int |
DOI_IS_DELETED
You tried to reserve or register a DOI that is marked as DELETED.
|
static int |
FOREIGN_DOI
A DOI cannot be created, registered, reserved and so on because it uses a
foreign prefix.
|
static int |
INTERNAL_ERROR
A internal error occurred either in the registration agency or in the
DOIConnector.
|
static int |
MISMATCH
A DOI and a provided object does not match.
|
static int |
RESERVE_FIRST
Some registration agencies request that a DOI gets reserved before it can
be registered.
|
static int |
UNAUTHORIZED_METADATA_MANIPULATION
DSpace did not allowed to manipulate the metadata of an DSpaceObject.
|
static int |
UNRECOGNIZED
An identifier supplied as DOI could not be recognized.
|
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
static String |
codeToString(int code) |
int |
getCode() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int CODE_NOT_SET
public static final int DOI_DOES_NOT_EXIST
public static final int DOI_ALREADY_EXISTS
public static final int FOREIGN_DOI
public static final int BAD_ANSWER
public static final int BAD_REQUEST
public static final int RESERVE_FIRST
public static final int AUTHENTICATION_ERROR
public static final int INTERNAL_ERROR
public static final int CONVERSION_ERROR
public static final int MISMATCH
public static final int UNRECOGNIZED
public static final int UNAUTHORIZED_METADATA_MANIPULATION
public static final int DOI_IS_DELETED
public DOIIdentifierException()
public DOIIdentifierException(int code)
public DOIIdentifierException(String message)
public DOIIdentifierException(String message, int code)
public DOIIdentifierException(Throwable cause)
public DOIIdentifierException(Throwable cause, int code)
public static String codeToString(int code)
public int getCode()
public String getMessage()
getMessage in class ThrowableCopyright © 2013 DuraSpace. All Rights Reserved.