org.ourgrid.common.exception
Class UnableToDigestFileException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ourgrid.common.exception.OurgridException
              extended by org.ourgrid.common.exception.UnableToDigestFileException
All Implemented Interfaces:
java.io.Serializable

public class UnableToDigestFileException
extends OurgridException

This class represents an Exception thrown when it is not possible to get a digest representation (hash) from a particular file

See Also:
Serialized Form

Constructor Summary
UnableToDigestFileException(java.lang.String filePath)
          Constructs a new exception that represents a problem during the digest representation calculation of a given file.
UnableToDigestFileException(java.lang.String filePath, java.lang.Throwable detail)
          Constructs a new exception that represents a problem during the digest representation calculation of a given file.
 
Method Summary
 java.lang.String getFile()
          Return the file path used during the digest process
 java.lang.String getMessage()
          Gives the message detailing the exception occured during the file digest process.
 
Methods inherited from class org.ourgrid.common.exception.OurgridException
getStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnableToDigestFileException

public UnableToDigestFileException(java.lang.String filePath)
Constructs a new exception that represents a problem during the digest representation calculation of a given file.

Parameters:
filePath - the file path used during the digest process.

UnableToDigestFileException

public UnableToDigestFileException(java.lang.String filePath,
                                   java.lang.Throwable detail)
Constructs a new exception that represents a problem during the digest representation calculation of a given file. This constructor encapsulates another throwable class that possibly caused the failure.

Parameters:
filePath - the file path used during the digest process.
detail - the throwable class possibly caused the failure.
Method Detail

getFile

public java.lang.String getFile()
Return the file path used during the digest process

Returns:
the string representation of file path used during the digest process

getMessage

public java.lang.String getMessage()
Gives the message detailing the exception occured during the file digest process.

Overrides:
getMessage in class OurgridException
Returns:
the message associated to the digestion