de.smartics.exceptions.report.data
Class SourceInfo

Package class diagram package SourceInfo
java.lang.Object
  extended by de.smartics.exceptions.report.data.SourceInfo

public final class SourceInfo
     
     
extends Object

Contains information about the source a exception code is defined in.


Constructor Summary
SourceInfo(String elementName, int lineNumber)
          Default constructor.
 
Method Summary
 String getElementName()
          Returns the name of the element that defines the exception code.
 int getLineNumber()
          Returns the line number where the exception code declaration begins.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceInfo

public SourceInfo(String elementName,
                  int lineNumber)
           throws de.smartics.util.lang.BlankArgumentException
Default constructor.

Parameters:
elementName - the name of the element that defines the exception code.
lineNumber - the line number where the exception code declaration begins.
Throws:
de.smartics.util.lang.BlankArgumentException - if elementName is blank.
Method Detail

getElementName

public String getElementName()
Returns the name of the element that defines the exception code.

Returns:
the name of the element that defines the exception code.

getLineNumber

public int getLineNumber()
Returns the line number where the exception code declaration begins.

Returns:
the line number where the exception code declaration begins.

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class Object
Returns:
the string representation of the object.


Copyright © 2007-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.