|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.util.OpenEJBErrorHandler
Constructor Summary | |
OpenEJBErrorHandler()
|
Method Summary | |
static void |
classCodebaseNotFound(String systemLocation,
String className,
String codebase,
Exception e)
The {0} cannot locate the class {1}, the codebase '{2}' cannot be accessed. |
static void |
classNotAccessible(String systemLocation,
String className)
Creates and throws an OpenEJBException with the following message: "The {0} cannot instaniate the class '{1}', the class or initializer is not accessible." {0} part of the system that needs the class {1} class that cannot be accessed. |
static void |
classNotFound(String systemLocation,
String className)
Creates and throws an OpenEJBException with the following message: "The {0} cannot find and load the class '{1}'." {0} part of the system that needs the class {1} class that cannot be found. |
static void |
classNotIntantiateable(String systemLocation,
String className)
Creates and throws an OpenEJBException with the following message: "The {0} cannot instaniate the class '{1}', the class may be abstract or an interface." {0} part of the system that needs the class {1} class that cannot be accessed. |
static void |
classNotIntantiateableForUnknownReason(String systemLocation,
String className,
String exceptionClassName,
String message)
Creates and throws an OpenEJBException with the following message: "The {0} cannot instaniate the class {1}: Recieved exception {2}: {3}" {0} part of the system that needs the class {1} class that cannot be accessed. |
static void |
classNotIntantiateableFromCodebaseForUnknownReason(String systemLocation,
String className,
String codebase,
String exceptionClassName,
String message)
Creates and throws an OpenEJBException with the following message: "The {0} cannot instaniate the class {1} loaded from codebase {2}: Recieved exception {3}: {4}" {0} part of the system that needs the class {1} class that cannot be accessed. |
static void |
configurationParsingError(String messageType,
String message,
String line,
String column)
Creates and throws an OpenEJBException with the following message: "Error in XML configuration file. |
static void |
handleUnknownError(Throwable error,
String systemLocation)
This method is only intended for situations where an unknown error or exception may occur and have fatal results. |
static void |
propertiesObjectIsNull(String systemLocation)
Creates and throws an OpenEJBException with the following message: "The required properties object needed by {0} is null ." {1} is the part of the system that needs the properties object. |
static void |
propertyFileNotFound(String propertyfileName,
String systemLocation)
Creates and throws an OpenEJBException with the following message: "Properties file '{0}' for {1} not found." {0} is the properties file name {1} is the part of the system that needs the properties file. |
static void |
propertyNotFound(String propertyName,
String propertyfileName)
Creates and throws an OpenEJBException with the following message: "Environment entry '{0}' not found in {1}." {0} is the property name {1} is the properties file name. |
static void |
propertyValueIsIllegal(String propertyName,
String value)
Creates and throws an OpenEJBException with the following message: "Environment entry '{0}' contains illegal value {1}." {0} is the property name {1} is the illegal value. |
static void |
propertyValueIsIllegal(String propertyName,
String value,
String message)
Creates and throws an OpenEJBException with the following message: "Environment entry '{0}' contains illegal value {1}. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OpenEJBErrorHandler()
Method Detail |
public static void handleUnknownError(Throwable error, String systemLocation)
public ContainerSystem build() throws AssemblerException{ try{ return (org.openejb.ContainerSystem)assembleContainerSystem(config); }catch(AssemblerException ae){ // AssemblerExceptions contain useful information and are debbugable. // Let the exception pass through to the top and be logged. throw ae; }catch(Exception e){ // General Exceptions at this level are too generic and difficult to debug. // These exceptions are considered unknown bugs and are fatal. OpenEJBErrorHandler.handleUnknownError(e, "Assembler"); } }Creates and logs an OpenEJBException with the following message: "FATAL ERROR: Unknown error in {0}. Please send the following stack trace and this message to openejb-bugs@exolab.org :\n {1}"} {0} is the part of the system that the error occurred.
error
- the unknown Throwable that occurred.systemLocation
- replaces {0} in the error message.public static void propertiesObjectIsNull(String systemLocation) throws OpenEJBException
systemLocation
- replaces {0} in the error message.
OpenEJBException
public static void propertyFileNotFound(String propertyfileName, String systemLocation) throws OpenEJBException
propertyfileName
- replaces {0} in the error message.systemLocation
- replaces {1} in the error message.
OpenEJBException
public static void propertyNotFound(String propertyName, String propertyfileName) throws OpenEJBException
propertyName
- replaces {0} in the error message.propertyfileName
- replaces {1} in the error message.
OpenEJBException
public static void propertyValueIsIllegal(String propertyName, String value) throws OpenEJBException
propertyName
- replaces {0} in the error message.value
- replaces {1} in the error message.
OpenEJBException
public static void propertyValueIsIllegal(String propertyName, String value, String message) throws OpenEJBException
propertyName
- replaces {0} in the error message.value
- replaces {1} in the error message.message
- replaces {2} in the error message.
OpenEJBException
public static void classNotFound(String systemLocation, String className) throws OpenEJBException
systemLocation
- replaces {0} in the error message.className
- replaces {1} in the error message.
OpenEJBException
public static void classNotAccessible(String systemLocation, String className) throws OpenEJBException
systemLocation
- replaces {0} in the error message.className
- replaces {1} in the error message.
OpenEJBException
public static void classNotIntantiateable(String systemLocation, String className) throws OpenEJBException
systemLocation
- replaces {0} in the error message.className
- replaces {1} in the error message.
OpenEJBException
public static void classNotIntantiateableForUnknownReason(String systemLocation, String className, String exceptionClassName, String message) throws OpenEJBException
systemLocation
- replaces {0} in the error message.className
- replaces {1} in the error message.exceptionClassName
- replaces {2} in the error message.message
- replaces {3} in the error message.
OpenEJBException
public static void classNotIntantiateableFromCodebaseForUnknownReason(String systemLocation, String className, String codebase, String exceptionClassName, String message) throws OpenEJBException
systemLocation
- replaces {0} in the error message.className
- replaces {1} in the error message.exceptionClassName
- replaces {3} in the error message.message
- replaces {4} in the error message.
OpenEJBException
public static void classCodebaseNotFound(String systemLocation, String className, String codebase, Exception e) throws OpenEJBException
systemLocation
- replaces {0} in the error message.className
- replaces {1} in the error message.codebase
- replaces {2} in the error message.e
- e.getMessage() replaces {3} in the error message.
OpenEJBException
public static void configurationParsingError(String messageType, String message, String line, String column)
messageType
- replaces {0} in the error message.message
- replaces {1} in the error message.line
- replaces {2} in the error message.column
- replaces {3} in the error message.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |