!--a11y-->
Exception Handling 
The table below outlines the exceptions that you might get when accessing a configuration. The exception classes are in package com.sap.engine.frame.core.configuration. For more information, see the J2EE Engine API documentation in the SAP NetWeaver Developer Studio documentation.
Exception |
Cause |
ConfigurationException |
General exception class. Thrown in case of technical problems. Its extensions (see below) specify more specific exception scenarios. |
ConfigurationLockedException extends ConfigurationException |
Thrown when an attempt is made to open in write mode a configuration that has already been opened for modifications. |
InconsistentReadException extends ConfigurationException |
Thrown when a configuration is accessed in read mode. The exception signifies that the configuration data has been changed since the application opened the configuration in read mode. |
InvalidPersistentDataStreamException extends java.io.IOException |
The methods getFile(String name) and getFileEntries(String[] names) of class Configuration return java.io.InputStream objects (or a Map of them). These can be accessed at any later time. If there is any IO-problem reading from such a Stream, an InvalidPersistentDataStream Exception is thrown. |
InvalidValueException extends ConfigurationException |
An invalid value object has been used to create or modify a configuration entry. For more information about the supported types, see Programming Application Configuration Management. |
NameAlreadyExistsException extends ConfigurationException |
Thrown at entity creation time. The path name of a configuration or the name of a configuration entry already exists. |
NameNotFoundException extends ConfigurationException |
Thrown at entity read time. The path name of a configuration or the name of a configuration entry does not exist. |
NoWriteAccessException extends ConfigurationException |
Write methods are invoked on a configuration object that is not opened in write-mode. |
