gov.nasa.pds.tools.label
Class LabelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by gov.nasa.pds.tools.label.LabelException
All Implemented Interfaces:
Serializable

public class LabelException
extends Exception

Author:
pramirez
See Also:
Serialized Form

Constructor Summary
LabelException(ExceptionType exceptionType, String messageKey, String publicId, String systemId, Integer lineNumber, Integer columnNumber)
           
LabelException(ExceptionType exceptionType, String message, String filepath, String location, String test)
          Used to capture information captured from schematron
 
Method Summary
 Integer getColumnNumber()
           
 ExceptionType getExceptionType()
           
 Integer getLineNumber()
           
 String getMessage()
           
 String getPublicId()
           
 String getSource()
           
 String getSystemId()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

LabelException

public LabelException(ExceptionType exceptionType,
                      String messageKey,
                      String publicId,
                      String systemId,
                      Integer lineNumber,
                      Integer columnNumber)

LabelException

public LabelException(ExceptionType exceptionType,
                      String message,
                      String filepath,
                      String location,
                      String test)
Used to capture information captured from schematron

Parameters:
exceptionType - type of issue that occurred
message - human readable message provided in schematron
filepath - absolute location of the file
location - context based on xpath where this occurred
test - what the schematron was looking for
Method Detail

getExceptionType

public ExceptionType getExceptionType()

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getPublicId

public String getPublicId()

getSystemId

public String getSystemId()

getLineNumber

public Integer getLineNumber()

getColumnNumber

public Integer getColumnNumber()

getSource

public String getSource()


Copyright © 2010-2014 Planetary Data System. All Rights Reserved.