de.hs_rm.cs.lecturenotes.shared
Class InvalidPermissionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.hs_rm.cs.lecturenotes.shared.InvalidPermissionException
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, java.io.Serializable

public final class InvalidPermissionException
extends java.lang.Exception
implements com.google.gwt.user.client.rpc.IsSerializable

Checked (Application) Exception used to indicate permission errors on the back-end side. The separation for the signaling is made in English and German. It's kept that way because the locale between server and client can differ. So ResourceBundle won't really work, because the Failure Message will be displayed on client side.

Version:
$LastChangedRevision: 241 $
Author:
Enrico Homann
See Also:
Serialized Form

Field Summary
static java.lang.String UI_MSG_UNKNWOPERMISSIONNERROR_DE
          Display Message for an unknown permission error in German.
static java.lang.String UI_MSG_UNKNWOPERMISSIONNERROR_EN
          Display Message for an unknown permission error in English.
 
Constructor Summary
InvalidPermissionException()
          Default constructor.
InvalidPermissionException(java.lang.String sErrMsgGerman, java.lang.String sErrMsgEnglish)
          Constructor with overriding error messages.
 
Method Summary
 java.lang.String getErrMsgEnglish()
          Will return the error message in English.
 java.lang.String getErrMsgGerman()
          Will return the error message in German.
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UI_MSG_UNKNWOPERMISSIONNERROR_DE

public static final java.lang.String UI_MSG_UNKNWOPERMISSIONNERROR_DE
Display Message for an unknown permission error in German.

See Also:
Constant Field Values

UI_MSG_UNKNWOPERMISSIONNERROR_EN

public static final java.lang.String UI_MSG_UNKNWOPERMISSIONNERROR_EN
Display Message for an unknown permission error in English.

See Also:
Constant Field Values
Constructor Detail

InvalidPermissionException

public InvalidPermissionException()
Default constructor.


InvalidPermissionException

public InvalidPermissionException(java.lang.String sErrMsgGerman,
                                  java.lang.String sErrMsgEnglish)
Constructor with overriding error messages.

Parameters:
sErrMsgGerman - String
sErrMsgEnglish - String
Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable

getErrMsgGerman

public java.lang.String getErrMsgGerman()
Will return the error message in German.

Returns:
String

getErrMsgEnglish

public java.lang.String getErrMsgEnglish()
Will return the error message in English.

Returns:
String.

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable