org.apache.maven.doxia.module.apt
Class AptParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.doxia.parser.ParseException
              extended by org.apache.maven.doxia.module.apt.AptParseException
All Implemented Interfaces:
java.io.Serializable

public class AptParseException
extends ParseException

Wraps an exception when parsing apt source documents.

See Also:
Serialized Form

Constructor Summary
AptParseException(java.lang.Exception e)
          Constructs a new AptParseException with the specified cause.
AptParseException(java.lang.String message)
          Construct a new AptParseException with the specified detail message.
AptParseException(java.lang.String message, AptSource source)
          Deprecated. source isn't a safe place to get linenumbers from.
AptParseException(java.lang.String message, AptSource source, java.lang.Exception e)
          Deprecated. source isn't a safe place to get linenumbers from
AptParseException(java.lang.String message, java.lang.Exception e)
          Construct a new AptParseException with the specified detail message and cause.
AptParseException(java.lang.String message, java.lang.String name, int lineNumber, java.lang.Exception e)
          Construct a new AptParseException with the specified cause, detail message, filename and linenumber.
 
Method Summary
 
Methods inherited from class org.apache.maven.doxia.parser.ParseException
getFileName, getLineNumber
 
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
 

Constructor Detail

AptParseException

public AptParseException(java.lang.String message,
                         AptSource source)
Deprecated. source isn't a safe place to get linenumbers from.

Parameters:
message - the error message.
source - the AptSource.

AptParseException

public AptParseException(java.lang.String message,
                         AptSource source,
                         java.lang.Exception e)
Deprecated. source isn't a safe place to get linenumbers from

Parameters:
message - the error message.
source - the AptSource.
e - the Exception.

AptParseException

public AptParseException(java.lang.String message,
                         java.lang.String name,
                         int lineNumber,
                         java.lang.Exception e)
Construct a new AptParseException with the specified cause, detail message, filename and linenumber.

Parameters:
message - The detailed message. This can later be retrieved by the Throwable.getMessage() method.
name - Name of a file that couldn't be parsed. This can later be retrieved by the getFileName() method.
lineNumber - The line number where the parsing failed. This can later be retrieved by the getLineNumber() method.
e - the cause. This can be retrieved later by the Throwable.getCause() method. (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

AptParseException

public AptParseException(java.lang.String message,
                         java.lang.Exception e)
Construct a new AptParseException with the specified detail message and cause.

Parameters:
message - The detailed message. This can later be retrieved by the Throwable.getMessage() method.
e - the cause. This can be retrieved later by the Throwable.getCause() method. (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

AptParseException

public AptParseException(java.lang.String message)
Construct a new AptParseException with the specified detail message.

Parameters:
message - The detailed message. This can later be retrieved by the Throwable.getMessage() method.

AptParseException

public AptParseException(java.lang.Exception e)
Constructs a new AptParseException with the specified cause. The error message is (cause == null ? null : cause.toString() ).

Parameters:
e - the cause. This can be retrieved later by the Throwable.getCause() method. (A null value is permitted, and indicates that the cause is nonexistent or unknown.)


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.