coins
クラス PassException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--coins.PassException
すべての実装インタフェース:
java.io.Serializable
直系の既知のサブクラス:
PassStopException, ProcessException, SyntaxErrorException

public class PassException
extends java.lang.Exception

Various exceptions in passes.
When a compiler driver catches a PassException, it is expected that 1) the driver restores the contexts (i.e., HirRoot, LirRoot, etc.) in the state at prior to the beginning of the pass and restarts the compilation of the source file by going an alternative way, or 2) the driver abandons the source file, goes on the next source file and doesn't link object files.
PassException thrower must write an error message if it is required, because the compiler driver never writes it.

関連項目:
直列化された形式

フィールドの概要
 
クラス java.lang.Exception から継承したフィールド
 
コンストラクタの概要
PassException(java.io.File sourceFile, int lineNumber, java.lang.String passName, java.lang.String message)
          Creates a pass exception with a message, a source file name, and a line number.
PassException(java.io.File sourceFile, java.lang.String passName, java.lang.String message)
          Creates a pass exception with a message and a source file name.
PassException(java.lang.String passName, java.lang.String message)
          Creates a pass exception with a message.
 
クラス java.lang.Throwable から継承したメソッド
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

PassException

public PassException(java.io.File sourceFile,
                     int lineNumber,
                     java.lang.String passName,
                     java.lang.String message)
Creates a pass exception with a message, a source file name, and a line number.

パラメータ:
sourceFile - The source file which contains this exception.
lineNumber - The line number in the source file which contains this exception.
passName - The pass name where this exception is occurred.
message - The message describing this exception.

PassException

public PassException(java.io.File sourceFile,
                     java.lang.String passName,
                     java.lang.String message)
Creates a pass exception with a message and a source file name. Use when a line number cannot be specified.

パラメータ:
sourceFile - The source file which contains this exception.
passName - The pass name where this exception is occurred.
message - The message describing this exception.

PassException

public PassException(java.lang.String passName,
                     java.lang.String message)
Creates a pass exception with a message. Use when a source file cannot be specified (e.g., linker).

パラメータ:
passName - The pass name where this exception is occurred.
message - The message describing this exception.