Class DOIIdentifierException

    • Field Detail

      • 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​(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 Detail

      • codeToString

        public static String codeToString​(int code)
      • getCode

        public int getCode()