jp.cssj.sakae.sac.parser
クラス ParseException

java.lang.Object
  拡張java.lang.Throwable
      拡張java.lang.Exception
          拡張jp.cssj.sakae.sac.parser.ParseException
すべての実装インタフェース:
Serializable

public class ParseException
extends Exception

This class encapsulates a general parse error or warning.

This class can contain basic error or warning information from either the parser or the application.

If the application needs to pass through other types of exceptions, it must wrap those exceptions in a ParseException.

バージョン:
$Id: ParseException.java,v 1.2 2007-05-06 04:24:08 miyabe Exp $
作成者:
Stephane Hillion
関連項目:
直列化された形式

フィールドの概要
protected  int columnNumber
           
protected  Exception exception
           
protected  int lineNumber
           
 
コンストラクタの概要
ParseException(Exception e)
          Creates a new ParseException wrapping an existing exception.
ParseException(String message, Exception e)
          Creates a new ParseException from an existing exception.
ParseException(String message, int line, int column)
          Creates a new ParseException.
 
メソッドの概要
 int getColumnNumber()
          Returns the column of the last parsed character.
 Exception getException()
          Return the embedded exception, if any.
 int getLineNumber()
          Returns the line of the last parsed character.
 String getMessage()
          Return a detail message for this exception.
 
クラス java.lang.Throwable から継承したメソッド
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

exception

protected Exception exception

lineNumber

protected int lineNumber

columnNumber

protected int columnNumber
コンストラクタの詳細

ParseException

public ParseException(String message,
                      int line,
                      int column)
Creates a new ParseException.

パラメータ:
message - The error or warning message.
line - The line of the last parsed character.
column - The column of the last parsed character.

ParseException

public ParseException(Exception e)
Creates a new ParseException wrapping an existing exception.

The existing exception will be embedded in the new one, and its message will become the default message for the ParseException.

パラメータ:
e - The exception to be wrapped in a ParseException.

ParseException

public ParseException(String message,
                      Exception e)
Creates a new ParseException from an existing exception.

The existing exception will be embedded in the new one, but the new exception will have its own message.

パラメータ:
message - The detail message.
e - The exception to be wrapped in a SAXException.
メソッドの詳細

getMessage

public String getMessage()
Return a detail message for this exception.

If there is a embedded exception, and if the ParseException has no detail message of its own, this method will return the detail message from the embedded exception.

戻り値:
The error or warning message.

getException

public Exception getException()
Return the embedded exception, if any.

戻り値:
The embedded exception, or null if there is none.

getLineNumber

public int getLineNumber()
Returns the line of the last parsed character.


getColumnNumber

public int getColumnNumber()
Returns the column of the last parsed character.



(c)2009 GNN & Co.,Ltd.