Class 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:
  • Field Details

    • CODE_NOT_SET

      public static final int CODE_NOT_SET
      Default.
      See Also:
    • DOI_DOES_NOT_EXIST

      public static final int DOI_DOES_NOT_EXIST
      A specified DOI does not exists.
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • AUTHENTICATION_ERROR

      public static final int AUTHENTICATION_ERROR
      Error while authenticating against the registration agency.
      See Also:
    • INTERNAL_ERROR

      public static final int INTERNAL_ERROR
      A internal error occurred either in the registration agency or in the DOIConnector.
      See Also:
    • CONVERSION_ERROR

      public static final int CONVERSION_ERROR
      An error arose while metadata conversion.
      See Also:
    • 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:
    • UNRECOGNIZED

      public static final int UNRECOGNIZED
      An identifier supplied as DOI could not be recognized.
      See Also:
    • UNAUTHORIZED_METADATA_MANIPULATION

      public static final int UNAUTHORIZED_METADATA_MANIPULATION
      DSpace did not allowed to manipulate the metadata of an DSpaceObject.
      See Also:
    • 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:
  • Constructor Details

    • DOIIdentifierException

      public DOIIdentifierException()
    • DOIIdentifierException

      public DOIIdentifierException(int code)
    • DOIIdentifierException

      public DOIIdentifierException(String message)
    • DOIIdentifierException

      public DOIIdentifierException(String message, int code)
    • DOIIdentifierException

      public DOIIdentifierException(String message, Throwable cause)
    • DOIIdentifierException

      public DOIIdentifierException(String message, Throwable cause, int code)
    • DOIIdentifierException

      public DOIIdentifierException(Throwable cause)
    • DOIIdentifierException

      public DOIIdentifierException(Throwable cause, int code)
  • Method Details

    • codeToString

      public static String codeToString(int code)
    • getCode

      public int getCode()
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable