au.gov.nehta.vendorlibrary.mdm.util
Class MDMValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by au.gov.nehta.vendorlibrary.mdm.util.MDMValidationException
All Implemented Interfaces:
java.io.Serializable

public final class MDMValidationException
extends java.lang.Exception

MDMValidationException Custom exception used when validating and verifying various aspects of a package.

See Also:
Serialized Form

Constructor Summary
MDMValidationException(java.lang.String message, java.util.Map<java.lang.String,java.util.List<java.lang.String>> failMessages)
          Constructs a MDMValidationException.
 
Method Summary
 int size()
          Returns the size of the failed message list.
 java.lang.String toString()
          String representation of the exception's contents.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MDMValidationException

public MDMValidationException(java.lang.String message,
                              java.util.Map<java.lang.String,java.util.List<java.lang.String>> failMessages)
Constructs a MDMValidationException.

Parameters:
message - Summary exception message.
failMessages - Map of failed variable(s) and the reason(s) that caused their failures.
Method Detail

size

public int size()
Returns the size of the failed message list.

Returns:
Integer.

toString

public java.lang.String toString()
String representation of the exception's contents.

Overrides:
toString in class java.lang.Throwable
Returns:
String.