org.apache.empire.commons
Class Errors

java.lang.Object
  extended by org.apache.empire.commons.Errors

public class Errors
extends java.lang.Object

This class holds the definition of common error types. No instances of this class can be created. It's sole purpose is to hold the definition of Error Types.

Define your own error types in the same way. See @link ErrorType for futher information.


Field Summary
static ErrorType Cancelled
           
static ErrorType Exception
           
static ErrorType FileExists
           
static ErrorType FileFormatError
           
static ErrorType FileNotFound
           
static ErrorType FileReadError
           
static ErrorType FileWriteError
           
static ErrorType IllegalFormat
           
static ErrorType IllegalValue
           
static ErrorType Internal
           
static ErrorType InvalidArg
           
static ErrorType InvalidPassword
           
static ErrorType InvalidProperty
           
static ErrorType ItemExists
           
static ErrorType ItemNotFound
           
static ErrorType NoAccess
           
static ErrorType NoMoreData
           
static ErrorType None
           
static ErrorType NoResult
           
static ErrorType NotAuthorized
           
static ErrorType NotImplemented
           
static ErrorType NotSupported
           
static ErrorType ObjectNotValid
           
static ErrorType OutOfRange
           
static ErrorType PathCreateFailed
           
static ErrorType PathNotFound
           
 
Method Summary
static java.lang.String getErrorMessage(ErrorInfo info)
          Gets an error Message from an object implementing the error info interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

None

public static final ErrorType None

Cancelled

public static final ErrorType Cancelled

Exception

public static final ErrorType Exception

Internal

public static final ErrorType Internal

InvalidArg

public static final ErrorType InvalidArg

NotSupported

public static final ErrorType NotSupported

NotImplemented

public static final ErrorType NotImplemented

ObjectNotValid

public static final ErrorType ObjectNotValid

InvalidProperty

public static final ErrorType InvalidProperty

NoAccess

public static final ErrorType NoAccess

NotAuthorized

public static final ErrorType NotAuthorized

InvalidPassword

public static final ErrorType InvalidPassword

OutOfRange

public static final ErrorType OutOfRange

ItemNotFound

public static final ErrorType ItemNotFound

ItemExists

public static final ErrorType ItemExists

IllegalValue

public static final ErrorType IllegalValue

IllegalFormat

public static final ErrorType IllegalFormat

NoResult

public static final ErrorType NoResult

NoMoreData

public static final ErrorType NoMoreData

FileNotFound

public static final ErrorType FileNotFound

FileExists

public static final ErrorType FileExists

FileFormatError

public static final ErrorType FileFormatError

FileReadError

public static final ErrorType FileReadError

FileWriteError

public static final ErrorType FileWriteError

PathNotFound

public static final ErrorType PathNotFound

PathCreateFailed

public static final ErrorType PathCreateFailed
Method Detail

getErrorMessage

public static java.lang.String getErrorMessage(ErrorInfo info)
Gets an error Message from an object implementing the error info interface.

Parameters:
info - the ErrorInfo to get the message for
Returns:
the message string for this info


Copyright © 2008-2009 Apache Software Foundation. All Rights Reserved.