Class IOException

All Implemented Interfaces:
Serializable

public class IOException extends RuntimeException
Defines the exceptions thrown by content management system (CMS) adapters to notify Editor that an error has occurred. IOException contains an error code, an error message, and an optional detailed error description.

The code field contains the Arbortext-supplied IOExceptionCode constant for the error condition. The message field contains a short description of the error. This message is generated by either the adapter or the associated CMS and should be localized. The detail field contains a longer description of the error that may be written to a log. For example, this description could contain a Java stack trace or a detailed error description provided by the CMS. Detailed error descriptions do not need to be localized.

Since:
Epic 5.2
See Also:
  • Field Details

    • code

      public final short code
    • detail

      public final String detail
    • OPERATION_FAILED_ERR

      public static final short OPERATION_FAILED_ERR
      The requested operation failed.
      See Also:
    • OPERATION_CANCELLED_ERR

      public static final short OPERATION_CANCELLED_ERR
      The requested operation was cancelled by the user.
      See Also:
    • NOT_IMPLEMENTED_ERR

      public static final short NOT_IMPLEMENTED_ERR
      The requested operation is not implemented by the adapter.
      See Also:
    • BAD_ARG_ERR

      public static final short BAD_ARG_ERR
      An invalid argument was passed to a method.
      See Also:
    • CANT_ALLOC_ERR

      public static final short CANT_ALLOC_ERR
      A resource allocation failed.
      See Also:
    • CANT_INIT_ERR

      public static final short CANT_INIT_ERR
      An initialization failed.
      See Also:
    • NO_LICENSE_ERR

      public static final short NO_LICENSE_ERR
      An attempt to obtain a license failed.
      See Also:
    • BAD_EXTENSION_ERR

      public static final short BAD_EXTENSION_ERR
      The requested extension operation does not exist.
      See Also:
    • CANT_CONNECT_ERR

      public static final short CANT_CONNECT_ERR
      An attempt to connect to the CMS failed (not due to invalid credentials).
      See Also:
    • INVALID_CREDENTIALS_ERR

      public static final short INVALID_CREDENTIALS_ERR
      The user name, password, or other credentials were not valid.
      See Also:
    • STILL_CONNECTED_ERR

      public static final short STILL_CONNECTED_ERR
      An attempt to reconnect to an already active session or to terminate the adapter with sessions still active.
      See Also:
    • CANT_DISCONNECT_ERR

      public static final short CANT_DISCONNECT_ERR
      An attempt to disconnect from the CMS failed.
      See Also:
    • NO_CONFIG_ERR

      public static final short NO_CONFIG_ERR
      The configuration file was not found.
      This error code is deprecated. New adapter implementations should, instead, simply return null from IOSession.loadConfiguration() when the requested configuration data is not available.
      See Also:
    • OBJECT_NOT_FOUND_ERR

      public static final short OBJECT_NOT_FOUND_ERR
      An object, identified by its Persistent Object Identifier (POID) or Logical ID, was not found in the CMS.
      See Also:
    • INVALID_LOGICAL_ID_ERR

      public static final short INVALID_LOGICAL_ID_ERR
      A Logical ID did not have the correct format.
      See Also:
    • INVALID_POID_ERR

      public static final short INVALID_POID_ERR
      A Persistent Object Identifier (POID) did not have the correct format.
      See Also:
    • NO_NESTED_TRANS_ERR

      public static final short NO_NESTED_TRANS_ERR
      The adapter does not support nested transactions.
      See Also:
    • OPERATION_NOT_ENABLED_ERR

      public static final short OPERATION_NOT_ENABLED_ERR
      Method cannot be called in the current state. Some adapters support more than one mode, such as online versus offline editing, and not all operations are allowed in every mode. For example, you might not be able to create new CMS folders while working offline.
      See Also:
    • CANT_OPEN_ERR

      public static final short CANT_OPEN_ERR
      An attempt to open an object failed.
      See Also:
    • CANT_CREATE_ERR

      public static final short CANT_CREATE_ERR
      An attempt to create an object failed.
      See Also:
    • PARENT_NOT_LOCKED_ERR

      public static final short PARENT_NOT_LOCKED_ERR
      An attempt to create a new object failed, because the parent object is not locked.
      See Also:
    • DECLS_LOCKED_ERR

      public static final short DECLS_LOCKED_ERR
      The SGML declarations are locked by another user.
      See Also:
    • OBJECT_IS_LOCKED_ERR

      public static final short OBJECT_IS_LOCKED_ERR
      The object must be unlocked to proceed.
      See Also:
    • CANT_LOCK_ERR

      public static final short CANT_LOCK_ERR
      An attempt to lock an object failed.
      See Also:
    • LOCKED_BY_OTHER_ERR

      public static final short LOCKED_BY_OTHER_ERR
      The object is already locked by another user.
      See Also:
    • ALREADY_LOCKED_ERR

      public static final short ALREADY_LOCKED_ERR
      The object is already locked by the user requesting a lock.
      See Also:
    • CANT_UNLOCK_ERR

      public static final short CANT_UNLOCK_ERR
      An attempt to unlock an object failed.
      See Also:
    • OBJECT_NOT_CONTAINER_ERR

      public static final short OBJECT_NOT_CONTAINER_ERR
      The requested operation cannot be performed, because the object is not a container.
      See Also:
    • OBJECT_NOT_LEAF_ERR

      public static final short OBJECT_NOT_LEAF_ERR
      The requested operation cannot be performed, because the object is not a leaf.
      See Also:
    • OBJECT_IS_FOLDER_ERR

      public static final short OBJECT_IS_FOLDER_ERR
      The requested operation cannot be performed, because the object is a folder.
      See Also:
    • CANT_PARSE_ERR

      public static final short CANT_PARSE_ERR
      An attempt to parse an XML or SGML object failed.
      See Also:
    • FOLDER_NOT_FOUND_ERR

      public static final short FOLDER_NOT_FOUND_ERR
      A requested folder was not found in the CMS.
      Since:
      Arbortext 6.0 M020
      See Also:
    • ATTR_UNSUPPORTED_ERR

      public static final short ATTR_UNSUPPORTED_ERR
      The specified attribute is not supported by the adapter.
      See Also:
    • ATTR_READ_ONLY_ERR

      public static final short ATTR_READ_ONLY_ERR
      The specified attribute is read-only.
      See Also:
    • NO_MORE_ELEMENTS_ERR

      public static final short NO_MORE_ELEMENTS_ERR
      There are no more entries to retrieve.
      See Also:
  • Constructor Details

    • IOException

      public IOException(short code, String message, String detail)
    • IOException

      public IOException(short code, String message)
    • IOException

      public IOException(short code)