com.taursys.model
Class MultiModelParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.taursys.util.ChainedException
              extended bycom.taursys.model.ModelException
                  extended bycom.taursys.model.ModelParseException
                      extended bycom.taursys.model.MultiModelParseException
All Implemented Interfaces:
java.io.Serializable

public class MultiModelParseException
extends ModelParseException

List of multiple ModelParseExceptions.

Author:
Marty
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.taursys.model.ModelParseException
messages, REASON_OFFSET, REASON_PARSE_ERROR
 
Fields inherited from class com.taursys.model.ModelException
REASON_INTERNAL_ERROR, REASON_MODEL_IS_WRONG_CLASS, REASON_MULTI_PROPERTY_MISMATCH, REASON_OBJECTS_ARE_IMMUTABLE, REASON_PARSE_CONVERSION_ERROR
 
Fields inherited from class com.taursys.util.ChainedException
cause, diagnosticInfo, reason, REASON_INVALID_REASON_CODE, REASON_UNSPECIFIED, userFriendlyMessage
 
Constructor Summary
MultiModelParseException(java.util.List exceptionList)
          Constructs MultiModelParseException with given list of ModelParseExceptions
MultiModelParseException(ModelParseException ex)
          Constructs MultiModelParseException with given ModelParseExceptions
 
Method Summary
 void add(ModelParseException ex)
          Adds a ModelParseException to the list
 void add(MultiModelParseException ex)
          Adds all the ModelParseExceptions from the given MultiModelParseException
 java.lang.Throwable getCause()
          Get the cause of the first ModelParseException
 java.lang.String getDiagnosticInfo()
          Get the diagnosticInfo from all the ModelParseExceptions
 java.util.List getExceptionList()
          Gets the list of all the ModelParseExceptions
 java.lang.String getFormatClass()
          Get the formatClass of the first ModelParseException
 java.lang.String getFormatPattern()
          Get the formatPattern of the first ModelParseException
 java.lang.String getGivenValue()
          Get the givenValue of the first ModelParseException
 java.lang.String getLocalizedMessage()
          Get the localizedMessage from all the ModelParseExceptions
 java.lang.String getMessage()
          Get the message from all the ModelParseExceptions
 java.lang.String getPropertyDataType()
          Get the propertyDataType of the first ModelParseException
 java.lang.String getPropertyName()
          Get the propertyName of the first ModelParseException
 int getReason()
          Get the reason of the first ModelParseException
 java.lang.String getUserFriendlyMessage()
          Get the userFriendlyMessage from all the ModelParseExceptions
 void printStackTrace()
          Print the stack trace from all the ModelParseExceptions
 void printStackTrace(java.io.PrintStream printStream)
          Print the stack trace from all the ModelParseExceptions
 void printStackTrace(java.io.PrintWriter printWriter)
          Print the stack trace from all the ModelParseExceptions
 
Methods inherited from class com.taursys.model.ModelParseException
getReasonMessage, setDiagnosticsInfo
 
Methods inherited from class com.taursys.util.ChainedException
getInvalidMessage, main
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiModelParseException

public MultiModelParseException(java.util.List exceptionList)
Constructs MultiModelParseException with given list of ModelParseExceptions

Parameters:
exceptionList -

MultiModelParseException

public MultiModelParseException(ModelParseException ex)
Constructs MultiModelParseException with given ModelParseExceptions

Parameters:
ex -
Method Detail

add

public void add(ModelParseException ex)
Adds a ModelParseException to the list

Parameters:
ex -

add

public void add(MultiModelParseException ex)
Adds all the ModelParseExceptions from the given MultiModelParseException

Parameters:
ex -

getExceptionList

public java.util.List getExceptionList()
Gets the list of all the ModelParseExceptions

Returns:

getFormatClass

public java.lang.String getFormatClass()
Get the formatClass of the first ModelParseException

Overrides:
getFormatClass in class ModelParseException
See Also:
ModelParseException.getFormatClass()

getFormatPattern

public java.lang.String getFormatPattern()
Get the formatPattern of the first ModelParseException

Overrides:
getFormatPattern in class ModelParseException
See Also:
ModelParseException.getFormatPattern()

getGivenValue

public java.lang.String getGivenValue()
Get the givenValue of the first ModelParseException

Overrides:
getGivenValue in class ModelParseException
See Also:
ModelParseException.getGivenValue()

getPropertyDataType

public java.lang.String getPropertyDataType()
Get the propertyDataType of the first ModelParseException

Overrides:
getPropertyDataType in class ModelParseException
See Also:
ModelParseException.getPropertyDataType()

getPropertyName

public java.lang.String getPropertyName()
Get the propertyName of the first ModelParseException

Overrides:
getPropertyName in class ModelParseException
See Also:
ModelParseException.getPropertyName()

getCause

public java.lang.Throwable getCause()
Get the cause of the first ModelParseException

Overrides:
getCause in class ChainedException
See Also:
Throwable.getCause()

getReason

public int getReason()
Get the reason of the first ModelParseException

Overrides:
getReason in class ChainedException
See Also:
ChainedException.getReason()

getDiagnosticInfo

public java.lang.String getDiagnosticInfo()
Get the diagnosticInfo from all the ModelParseExceptions

Overrides:
getDiagnosticInfo in class ChainedException
See Also:
ChainedException.getDiagnosticInfo()

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Get the localizedMessage from all the ModelParseExceptions

Overrides:
getLocalizedMessage in class ChainedException
See Also:
Throwable.getLocalizedMessage()

getMessage

public java.lang.String getMessage()
Get the message from all the ModelParseExceptions

See Also:
Throwable.getMessage()

getUserFriendlyMessage

public java.lang.String getUserFriendlyMessage()
Get the userFriendlyMessage from all the ModelParseExceptions

Overrides:
getUserFriendlyMessage in class ChainedException
See Also:
ChainedException.getUserFriendlyMessage()

printStackTrace

public void printStackTrace()
Print the stack trace from all the ModelParseExceptions

Overrides:
printStackTrace in class ChainedException
See Also:
Throwable.printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream printStream)
Print the stack trace from all the ModelParseExceptions

Overrides:
printStackTrace in class ChainedException
See Also:
Throwable.printStackTrace(java.io.PrintStream)

printStackTrace

public void printStackTrace(java.io.PrintWriter printWriter)
Print the stack trace from all the ModelParseExceptions

Overrides:
printStackTrace in class ChainedException
See Also:
Throwable.printStackTrace(java.io.PrintWriter)


Copyright © 2007 Martin T Phelan. All Rights Reserved.