KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > oyster > exception > SMIMEIOException


1 package org.enhydra.oyster.exception;
2
3 import java.io.IOException JavaDoc;
4
5 /**
6  * Title: Oyster Project
7  * Description: Creating S/MIME email transport capabilities.
8  * Copyright: Copyright (c) 2001
9  * @Author Vladimir Radisic
10  * @Version 2.1.5
11  */

12
13 /**
14  * SMIMEIOException is exception which is thrown in the classes specific
15  * for SMIME and in the processes associated with SMIME, but only where is imposible
16  * to throw SMIMEException instead of IOException. This is situation, for example,
17  * in case of implementation of interfaces whose methods are defined to throw
18  * IOException. If in such method SMIMEException occures, we must
19  * throw SMIMEIOException (which has posibilities to carry SMIMEException object
20  * that can be examined in higher instance) instead of it.
21  */

22 public class SMIMEIOException extends IOException JavaDoc
23 {
24 /**
25  * Container for carryng SMIMEException object.
26  */

27   private SMIMEException smimeException = null;
28
29 /**
30  * Construction with SMIMEException object as parameter.
31  * @param exception0 SMIMEException object which is reason for throwing
32  * SMIMEIOException exception.
33  */

34   public SMIMEIOException(SMIMEException exception0)
35   {
36     super(exception0.getInformation());
37     smimeException = exception0;
38   }
39
40 /**
41  * Gets stored SMIMEException object.
42  */

43   public SMIMEException getSMIMEException()
44   {
45     return smimeException;
46   }
47 }
Popular Tags