SAP NetWeaver 7.1 Composition Environment

com.sap.security.api
Class UMRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sap.security.api.UMRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FeatureNotAvailableException, NoSuchPCDRoleException, PrincipalNotAccessibleException

public class UMRuntimeException
extends RuntimeException

This is the superclass of all runtime exceptions employed in the user management; it indicates error conditions that can occur during the normal operation of the JVM.

See Also:
Serialized Form

Field Summary
protected  List mMessageBuffer
          Message Buffer
 
Constructor Summary
UMRuntimeException()
           
UMRuntimeException(String message)
           
UMRuntimeException(Throwable nestedException)
           
UMRuntimeException(Throwable nestedException, String message)
           
 
Method Summary
 void addMessage(IMessage message)
          Adds a message to the message buffer of this exception.
 Iterator getMessages(boolean clearPermanentMessages)
          Returns an iterator which contains the IMessage objects assigned to this IPrincipal or null if no messages are assigned.
 Throwable getNestedException()
           
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mMessageBuffer

protected transient List mMessageBuffer
Message Buffer

Constructor Detail

UMRuntimeException

public UMRuntimeException(Throwable nestedException,
                          String message)

UMRuntimeException

public UMRuntimeException(Throwable nestedException)

UMRuntimeException

public UMRuntimeException(String message)

UMRuntimeException

public UMRuntimeException()
Method Detail

getMessages

public Iterator getMessages(boolean clearPermanentMessages)
Returns an iterator which contains the IMessage objects assigned to this IPrincipal or null if no messages are assigned. If the method is called with parameter true, every subsequent call will return null if no new message was assigned to this IPrincipal.

Parameters:
clearPermanentMessages - Specifies whether permanent messages with life time IMessage.LIFETIME_PERMANENT should be removed from the message buffer.
Returns:
The messages assigned to this IPrincipal object or null.

addMessage

public void addMessage(IMessage message)
Adds a message to the message buffer of this exception.

Parameters:
message - The message to add at the end of the message buffer.

getNestedException

public Throwable getNestedException()

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable

SAP NetWeaver 7.1 Composition Environment

Copyright © 2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.