SAP BI Java SDK

com.sap.ip.bi.sdk.exception
Class BIRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.sap.exception.BaseRuntimeException
                          |
                          +--com.sap.ip.bi.sdk.exception.BIRuntimeException
All Implemented Interfaces:
com.sap.exception.IBaseException, Serializable

public class BIRuntimeException
extends com.sap.exception.BaseRuntimeException

Represents BI Java SDK-specific runtime exceptions. Extended from SAP's BaseRuntimeException.

Since:
3.50
See Also:
Serialized Form

Fields inherited from interface com.sap.exception.IBaseException
audit, defaultLocale
 
Constructor Summary
BIRuntimeException(Locale locale)
          Constructs a BIRuntimeException object with no parameter.
BIRuntimeException(Locale locale, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, String messageId, Object[] args, Throwable cause)
          Constructs a BIRuntimeException object with log handling.
BIRuntimeException(Locale locale, com.sap.tc.logging.Category category, int severity, com.sap.tc.logging.Location location, String messageId, Throwable cause)
          Constructs a BIRuntimeException object with log handling.
BIRuntimeException(Locale locale, String messageId)
          Constructs a BIRuntimeException object with message ID.
BIRuntimeException(Locale locale, String messageId, Object[] args)
          Constructs a BIRuntimeException object with message ID and arguments.
BIRuntimeException(Locale locale, String messageId, Object[] args, Throwable cause)
          Constructs a BIRuntimeException object with message ID, arguments, and original exception.
BIRuntimeException(Locale locale, String messageId, Throwable cause)
          Constructs a BIRuntimeException object with message ID, and original exception.
BIRuntimeException(Locale locale, Throwable cause)
          Constructs a BIRuntimeException object with original exception.
 
Method Summary
 void finallyLocalize()
          Finally localizes the LocalizableText message (if there is one attached).
 void finallyLocalize(TimeZone arg0)
          Finally localizes the LocalizableText message (if there is one attached) with the specified time zone information.
 String getLocalizedMessage()
          Gets the localized message from BaseExceptionInfo instance.
 String getLocalizedMessage(TimeZone arg0)
          Returns the localized message string with a time zone restriction.
 String getMessage()
          Returns the exception message.
 String getNestedLocalizedMessage()
          Returns the nested localized message.
 String getNestedLocalizedMessage(TimeZone arg0)
          Returns the nested localized message with time zone information.
 
Methods inherited from class com.sap.exception.BaseRuntimeException
finallyLocalize, finallyLocalize, getCause, getLocalizableMessage, getLocalizedMessage, getLocalizedMessage, getLogCategory, getLogLocation, getLogSeverity, getNestedLocalizedMessage, getNestedLocalizedMessage, getNestedStackTraceString, getStackTraceString, getSystemStackTraceString, initCause, log, printStackTrace, printStackTrace, printStackTrace, restoreLogSettings, setLogSettings, trace, trace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BIRuntimeException

public BIRuntimeException(Locale locale,
                          String messageId)
Constructs a BIRuntimeException object with message ID.
Parameters:
locale - Locale for message
messageId - unique ID of a given message
See Also:
Throwable.Throwable(String)

BIRuntimeException

public BIRuntimeException(Locale locale,
                          String messageId,
                          Object[] args)
Constructs a BIRuntimeException object with message ID and arguments.
Parameters:
locale - Locale for message
messageId - unique ID of a given message
args - arguments of the formatted message

BIRuntimeException

public BIRuntimeException(Locale locale,
                          String messageId,
                          Object[] args,
                          Throwable cause)
Constructs a BIRuntimeException object with message ID, arguments, and original exception.
Parameters:
locale - Locale for message
messageId - unique ID of a given message
args - arguments of the formatted message
cause - the original exception to nest in this exception

BIRuntimeException

public BIRuntimeException(Locale locale,
                          String messageId,
                          Throwable cause)
Constructs a BIRuntimeException object with message ID, and original exception.
Parameters:
locale - Locale for message
messageId - unique ID of a given message
cause - the original exception to nest in this exception

BIRuntimeException

public BIRuntimeException(Locale locale,
                          Throwable cause)
Constructs a BIRuntimeException object with original exception.
Parameters:
locale - Locale for message
cause - the original exception to nest in this exception

BIRuntimeException

public BIRuntimeException(Locale locale)
Constructs a BIRuntimeException object with no parameter.
Parameters:
locale - Locale for message

BIRuntimeException

public BIRuntimeException(Locale locale,
                          com.sap.tc.logging.Category category,
                          int severity,
                          com.sap.tc.logging.Location location,
                          String messageId,
                          Throwable cause)
Constructs a BIRuntimeException object with log handling.
Parameters:
locale - Locale for message
category - category of the exception
severity - severity of the exception
location - the location where this exception is thrown
messageId - unique ID of a given message
cause - the original exception to nest in this exception

BIRuntimeException

public BIRuntimeException(Locale locale,
                          com.sap.tc.logging.Category category,
                          int severity,
                          com.sap.tc.logging.Location location,
                          String messageId,
                          Object[] args,
                          Throwable cause)
Constructs a BIRuntimeException object with log handling.
Parameters:
locale - Locale for message
category - category of the exception
severity - severity of the exception
location - the location where this exception is thrown
messageId - unique ID of a given message
args - arguments of the formatted message
cause - the original exception to nest in this exception
Method Detail

finallyLocalize

public void finallyLocalize()
Finally localizes the LocalizableText message (if there is one attached).
Overrides:
finallyLocalize in class com.sap.exception.BaseRuntimeException

finallyLocalize

public void finallyLocalize(TimeZone arg0)
Finally localizes the LocalizableText message (if there is one attached) with the specified time zone information.
Overrides:
finallyLocalize in class com.sap.exception.BaseRuntimeException

getLocalizedMessage

public String getLocalizedMessage()
Gets the localized message from BaseExceptionInfo instance.
Overrides:
getLocalizedMessage in class com.sap.exception.BaseRuntimeException
See Also:
Throwable.getLocalizedMessage()

getLocalizedMessage

public String getLocalizedMessage(TimeZone arg0)
Returns the localized message string with a time zone restriction.
Overrides:
getLocalizedMessage in class com.sap.exception.BaseRuntimeException

getMessage

public String getMessage()
Returns the exception message.
Overrides:
getMessage in class com.sap.exception.BaseRuntimeException
See Also:
Throwable.getMessage()

getNestedLocalizedMessage

public String getNestedLocalizedMessage()
Returns the nested localized message.
Overrides:
getNestedLocalizedMessage in class com.sap.exception.BaseRuntimeException

getNestedLocalizedMessage

public String getNestedLocalizedMessage(TimeZone arg0)
Returns the nested localized message with time zone information.
Overrides:
getNestedLocalizedMessage in class com.sap.exception.BaseRuntimeException

SAP BI Java SDK

Copyright © 2004-2006 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.