com.redhat.rhn.common.security
Class PermissionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.redhat.rhn.common.RhnRuntimeException
                  extended by com.redhat.rhn.common.security.PermissionException
All Implemented Interfaces:
java.io.Serializable

public class PermissionException
extends RhnRuntimeException

A RuntimeException indicating that the user has attempted something he or she does not have permissions for.

See Also:
Serialized Form

Constructor Summary
PermissionException(Role role)
          Constructor
PermissionException(java.lang.String message)
          Constructor
PermissionException(java.lang.String message, java.lang.Throwable cause)
          Constructor
 
Method Summary
 java.lang.String getLocalizedSummary()
           
 java.lang.String getLocalizedTitle()
           
 void setLocalizedSummary(java.lang.String localizedSummaryIn)
           
 void setLocalizedTitle(java.lang.String localizedTitleIn)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionException

public PermissionException(java.lang.String message)
Constructor

Parameters:
message - exception message

PermissionException

public PermissionException(java.lang.String message,
                           java.lang.Throwable cause)
Constructor

Parameters:
message - exception message
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

PermissionException

public PermissionException(Role role)
Constructor

Parameters:
role - Cause for the exception (bad role)
Method Detail

getLocalizedSummary

public java.lang.String getLocalizedSummary()
Returns:
Returns the localizedSummary.

setLocalizedSummary

public void setLocalizedSummary(java.lang.String localizedSummaryIn)
Parameters:
localizedSummaryIn - The localizedSummary to set.

getLocalizedTitle

public java.lang.String getLocalizedTitle()
Returns:
Returns the localizedTitle.

setLocalizedTitle

public void setLocalizedTitle(java.lang.String localizedTitleIn)
Parameters:
localizedTitleIn - The localizedTitle to set.