com.github.jknack.handlebars
Class HandlebarsError

java.lang.Object
  extended by com.github.jknack.handlebars.HandlebarsError

public class HandlebarsError
extends Object

Useful information about a handlebar error.

Since:
0.5.0
Author:
edgar.espina

Field Summary
 int column
          The error's column number.
 String evidence
          The error's evidence.
 String filename
          The file's name.
 int line
          The error's line number.
 String message
          The full error's message.
 String reason
          The error's problem.
 
Constructor Summary
HandlebarsError(String filename, int line, int column, String reason, String evidence, String message)
          Creates a new HandlebarsError.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

line

public final int line
The error's line number.


column

public final int column
The error's column number.


reason

public final String reason
The error's problem.


evidence

public final String evidence
The error's evidence.


filename

public final String filename
The file's name.


message

public final String message
The full error's message.

Constructor Detail

HandlebarsError

public HandlebarsError(String filename,
                       int line,
                       int column,
                       String reason,
                       String evidence,
                       String message)
Creates a new HandlebarsError.

Parameters:
filename - The file's name. Required.
line - The error's line number.
column - The error's column number.
reason - The error's reason. Required.
evidence - The error's evidence. Required.
message - The error's message. Required.
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.