org.apache.maven.doxia.module.apt

Class AptParseException

public class AptParseException extends ParseException

Wraps an exception when parsing apt source documents.
Constructor Summary
AptParseException(String message, AptSource source)
AptParseException(String message, AptSource source, Exception e)
AptParseException(String message, String name, int lineNumber, Exception e)
Construct a new AptParseException with the specified cause, detail message, filename and linenumber.
AptParseException(String message, Exception e)
Construct a new AptParseException with the specified detail message and cause.
AptParseException(String message)
Construct a new AptParseException with the specified detail message.
AptParseException(Exception e)
Constructs a new AptParseException with the specified cause.

Constructor Detail

AptParseException

public AptParseException(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(String message, AptSource source, 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(String message, String name, int lineNumber, 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(String message, 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(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(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-2010 Apache Software Foundation. All Rights Reserved.