jindent
Class JindentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jindent.JindentException
All Implemented Interfaces:
Serializable

public class JindentException
extends Exception

This exception will be thrown if an error in Jindent occurs while parsing, reading or writing. Please read the exception messages to get detailed information about the errors.

See Also:
Serialized Form

Constructor Summary
JindentException()
          Constructs a Jindent exception without a message.
JindentException(String msg)
          Constructs a Jindent exception with a message.
JindentException(String msg, int c, int l)
          Constructs a Jindent exception with a message and informations about the column and line where the error occured.
 
Method Summary
 int getColumn()
          Gets input column where the error occured.
 int getLine()
          Gets input line where the error occured.
 boolean hasColumnAndLineNumber()
          Has this exception informations about column and line number?
 
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

JindentException

public JindentException()
Constructs a Jindent exception without a message.


JindentException

public JindentException(String msg)
Constructs a Jindent exception with a message.

Parameters:
msg - detailed exception message

JindentException

public JindentException(String msg,
                        int c,
                        int l)
Constructs a Jindent exception with a message and informations about the column and line where the error occured.

Parameters:
msg - detailed exception message.
c - column of error.
l - line of error.
Method Detail

getColumn

public int getColumn()
Gets input column where the error occured.

Returns:
-1 if no column was set, otherwise a positive integer value

getLine

public int getLine()
Gets input line where the error occured.

Returns:
-1 if no column was set, otherwise a positive integer value

hasColumnAndLineNumber

public boolean hasColumnAndLineNumber()
Has this exception informations about column and line number?

Returns:
true or false