com.mcdermottroe.exemplar
Class CopyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.mcdermottroe.exemplar.Exception
              extended by com.mcdermottroe.exemplar.CopyException
All Implemented Interfaces:
Copyable<Exception>, Serializable, Comparable<Exception>

public class CopyException
extends Exception

An exception that can be thrown in response to any error which occurs while calling an implementation of Copyable.getCopy().

Since:
0.2
See Also:
Serialized Form

Constructor Summary
CopyException()
          CopyException without a description.
CopyException(String message)
          CopyException with a description.
CopyException(String message, Throwable cause)
          CopyException with a description and a reference to an exception which caused it.
CopyException(Throwable cause)
          CopyException with a reference to the exception that caused it.
 
Method Summary
 CopyException getCopy()
          Creates a deep copy of the current object and returns it.
 
Methods inherited from class com.mcdermottroe.exemplar.Exception
compareTo, copyStackTrace, equals, getBackTrace, hashCode, toString
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyException

public CopyException()
CopyException without a description.


CopyException

public CopyException(String message)
CopyException with a description.

Parameters:
message - The description of the exception.

CopyException

public CopyException(String message,
                     Throwable cause)
CopyException with a description and a reference to an exception which caused it.

Parameters:
message - The description of the exception.
cause - The cause of the exception.

CopyException

public CopyException(Throwable cause)
CopyException with a reference to the exception that caused it.

Parameters:
cause - The cause of the exception.
Method Detail

getCopy

public CopyException getCopy()
Creates a deep copy of the current object and returns it.

Returns:
A deep copy of the current object.