edu.ucsb.nceas.metacat

## Class AccessionNumberException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - edu.ucsb.nceas.metacat.AccessionNumberException

- All Implemented Interfaces:
    java.io.Serializable

      public class AccessionNumberException
      extends java.lang.Exception

  Exception thrown when an error occurs because an AccessionNumber was invalid or used incorrectly. Accession numbers are invalid under the following conditions: 1) INSERT mode, and the provided accesion # doesn't contain "sep" 2) UPDATE mode, and no accession # provided 3) UPDATE mode, and accession # doesn't exist in xml_documents table 4) DELETE mode, and no accession # provided 5) DELETE mode, and accession # doesn't exist in xml_documents table
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AccessionNumberException(java.lang.String message)` Create a new AccessionNumberException.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### AccessionNumberException

          public AccessionNumberException(java.lang.String message)

      Create a new AccessionNumberException.
      Parameters:
        `message` - The error or warning message.

Copyright © 2020 Regents of the University of California. All Rights Reserved.