org.olap4j.mdx.parser
Class MdxParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.olap4j.mdx.parser.MdxParseException
All Implemented Interfaces:
Serializable

public class MdxParseException
extends RuntimeException

Exception thrown by an MdxParser to indicate an error in parsing. Has a ParseRegion.

Version:
$Id: MdxParseException.java 482 2012-01-05 23:27:27Z jhyde $
Author:
jhyde
See Also:
Serialized Form

Constructor Summary
MdxParseException(ParseRegion region, String message)
          Creates an MdxParseException with a region of the source code and a specified detail message.
MdxParseException(ParseRegion region, Throwable cause)
          Creates an MdxParseException with a region of the source code and a specified cause.
 
Method Summary
 ParseRegion getRegion()
           
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MdxParseException

public MdxParseException(ParseRegion region,
                         Throwable cause)
Creates an MdxParseException with a region of the source code and a specified cause.

Parameters:
region - Region of source code which contains the error
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.)

MdxParseException

public MdxParseException(ParseRegion region,
                         String message)
Creates an MdxParseException with a region of the source code and a specified detail message.

Parameters:
region - Region of source code which contains the error
message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
Method Detail

getRegion

public ParseRegion getRegion()

SourceForge.net_Logo