gov.grants.apply.util
Class InvalidHashValueException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bygov.grants.apply.util.InvalidHashValueException
All Implemented Interfaces:
java.io.Serializable

public class InvalidHashValueException
extends java.lang.Exception

A custom Exception signifying the hash value in the Header of the Grant application XML does not match the calculated hash value of the received XML.

Author:
David Wong
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
InvalidHashValueException(java.lang.String calculatedHash, java.lang.String hashFromHeader)
          Create the exception initialize with what the expected hash value should have been and what was given in the header of the Grant application XML.
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

InvalidHashValueException

public InvalidHashValueException(java.lang.String calculatedHash,
                                 java.lang.String hashFromHeader)
Create the exception initialize with what the expected hash value should have been and what was given in the header of the Grant application XML.

Parameters:
calculatedHash - The calculated hash value.
hashFromHeader - The hash value from the header.
Method Detail

main

public static final void main(java.lang.String[] args)