Skip navigation links

Oracle® OLAP Java API Reference
11g Release 2 (11.2)

E10794-06


oracle.olapi
Class BatchedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by oracle.olapi.OLAPIRuntimeException
                  extended by oracle.olapi.BatchedException

All Implemented Interfaces:
java.io.Serializable, HasLocalizedMessage

public class BatchedException
extends OLAPIRuntimeException

A base class for runtime exceptions that bundle together a list of errors or warnings for later processing.

See Also:
Serialized Form

Method Summary
 java.util.List<java.lang.Exception> getErrors()
          Gets the exceptions of the BatchedException that are caused by errors.
 java.util.List<java.lang.Exception> getExceptions()
          Gets the exceptions that the BatchedException contains.
 java.lang.String getLocalizedMessage(java.util.Locale locale)
          Gets a message in the language specified by the java.util.Locale object.
 java.util.List<java.lang.Exception> getWarnings()
          Gets the exceptions of the BatchedException that are warnings.
 boolean isError()
          Indicates that the exception is caused by an error.
 boolean isWarning()
          Indicates that the exception is a warning about a potential problem.

 

Methods inherited from class oracle.olapi.OLAPIRuntimeException
getLocalizedMessage, toString

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale)
Gets a message in the language specified by the java.util.Locale object.
Specified by:
getLocalizedMessage in interface HasLocalizedMessage
Overrides:
getLocalizedMessage in class OLAPIRuntimeException
Parameters:
locale - The Locale object that specifies the language for the message.
Returns:
A String that has the message in the specified language.

isWarning

public final boolean isWarning()
Indicates that the exception is a warning about a potential problem.
Returns:
A boolean that is true if the exception is a warning or false if not.

isError

public final boolean isError()
Indicates that the exception is caused by an error.
Returns:
A boolean that is true if the exception is caused by an error or false if not.

getExceptions

public final java.util.List<java.lang.Exception> getExceptions()
Gets the exceptions that the BatchedException contains.
Returns:
A List of Exception objects.

getErrors

public final java.util.List<java.lang.Exception> getErrors()
Gets the exceptions of the BatchedException that are caused by errors.
Returns:
A List of the Exception objects that are caused by errors.

getWarnings

public final java.util.List<java.lang.Exception> getWarnings()
Gets the exceptions of the BatchedException that are warnings.
Returns:
A List of the Exception objects that are warnings.

Skip navigation links

Copyright © 2002, 2010, Oracle. All rights reserved.