pmp
Class InternalMPError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by pmp.InternalMPError
All Implemented Interfaces:
java.io.Serializable

public class InternalMPError
extends java.lang.Error

Signals internal error in macroprocessor.

Error codes represent internal errors. Lower 16 bits contain BCD encoded number of line (in time of writing; due to later changes in source file, real line number might differ) where error occured and higher 16 bits identify class where it happend.

See enum InternalMPError.Source for identificators of source.

For example: error code 0x020423 means that error occurred in MacroList class at line number 423 (decimal).

Note: This class was rendered almost useless by assert feature and further usage is deprecated.

Title: PMP: Macroprocessor

Description: Java macroprocessor

Copyright: Copyright (c) 2005

Version:
1.0
Author:
Luděk Hlaváček
See Also:
Serialized Form

Nested Class Summary
static class InternalMPError.Source
           
 
Field Summary
static java.lang.String ERROR_CODE_MESSAGE
          Error message used by InternalMPError(int) constructor.
 
Constructor Summary
InternalMPError(int code)
          Creates error with specified error code.
InternalMPError(InternalMPError.Source file, int line)
           
InternalMPError(int file, int line)
           
 
Method Summary
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_CODE_MESSAGE

public static final java.lang.String ERROR_CODE_MESSAGE
Error message used by InternalMPError(int) constructor.

See Also:
Constant Field Values
Constructor Detail

InternalMPError

public InternalMPError(int code)
Creates error with specified error code.

This constructor should be used when internal error occurs and there is not any meaningfull message to be presented to user.

Parameters:
code - error code (see description of this class for details)

InternalMPError

public InternalMPError(InternalMPError.Source file,
                       int line)

InternalMPError

public InternalMPError(int file,
                       int line)