eu.planets_project.services.utils
Class DigestException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by eu.planets_project.services.utils.DigestException
All Implemented Interfaces:
Serializable

public class DigestException
extends RuntimeException

A RuntimeException thrown when there is unexpected errors computing a digest.

For example when you checksum a fixed String with a well known digest such as MD5, errors a re not expected.

It is also used to hide explicit code to handle NoSuchAlgorithmExceptions in cases where you request algorithms required by the Java CryptoSpec. Fx MD5 and SHA-1.

See Also:
Serialized Form

Constructor Summary
DigestException(String message)
           
DigestException(String message, Throwable t)
           
 
Method Summary
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DigestException

public DigestException(String message)
Parameters:
message - The message

DigestException

public DigestException(String message,
                       Throwable t)
Parameters:
message - The message
t - The throwable


Copyright © 2013 Open Planets Foundation. All Rights Reserved.