jACOB 2.7 API Documentation.

de.tif.jacob.core.exception
Class UserRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.tif.jacob.core.exception.UserRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UnavailableDatasourceException, UndefinedDatasourceException

public class UserRuntimeException
extends java.lang.RuntimeException

UserRuntimeException is the base class of all runtime exceptions which in general result due to inproper user operation.

Exceptions of type UserRuntimeException should be handled by gui clients by means of generating a nice (i.e. a localized, user understandable) warning.

See Also:
UserException, Serialized Form

Field Summary
static java.lang.String RCS_ID
          The internal revision control system id.
static java.lang.String RCS_REV
          The internal revision control system id in short form.
 
Constructor Summary
UserRuntimeException(Message message)
          Constructs a new user exception with the specified internationalized detail message.
UserRuntimeException(Message message, java.lang.Throwable cause)
          Constructs a new user exception with the specified internationalized detail message and an additional exception cause.
UserRuntimeException(java.lang.String message)
          Constructs a new user runtime exception with the specified detail message.
UserRuntimeException(UserException cause)
          This constructor is for internal use only.
 
Method Summary
 java.lang.String getLocalizedMessage(java.util.Locale locale)
          Returns a localized detail message for the given locale.
 java.lang.String getMessage()
          Returns the detail message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RCS_ID

public static final transient java.lang.String RCS_ID
The internal revision control system id.

See Also:
Constant Field Values

RCS_REV

public static final transient java.lang.String RCS_REV
The internal revision control system id in short form.

See Also:
Constant Field Values
Constructor Detail

UserRuntimeException

public UserRuntimeException(java.lang.String message)
Constructs a new user runtime exception with the specified detail message.

Note: This constructor should only be used, if your application is not designed for multi language support! To internationalize the exception use UserRuntimeException(Message) or UserRuntimeException(Message, Throwable).

Parameters:
message - the detail message

UserRuntimeException

public UserRuntimeException(Message message)
Constructs a new user exception with the specified internationalized detail message.

Parameters:
message - the internationalized detail message

UserRuntimeException

public UserRuntimeException(Message message,
                            java.lang.Throwable cause)
Constructs a new user exception with the specified internationalized detail message and an additional exception cause.

Parameters:
message - the internationalized detail message
cause - the original cause

UserRuntimeException

public UserRuntimeException(UserException cause)
This constructor is for internal use only.

Parameters:
cause - the original cause
Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale)
Returns a localized detail message for the given locale.

Parameters:
locale - the locale
Returns:
localized detail message

getMessage

public java.lang.String getMessage()
Returns the detail message. If possible, the message is localized.

Overrides:
getMessage in class java.lang.Throwable
Returns:
detail message
See Also:
Throwable.getMessage()

jACOB 2.7 API Documentation.