1 package org.webdocwf.util.smime.exception;
2
3
4 import java.io.IOException;
5
6
7 /***
8 * Title: S/MIME Project
9 * Description: Creating S/MIME email transport capabilities.
10 * Copyright: Copyright (c) 2001
11 * @Author Vladimir Radisic
12 * @Version 2.0.1
13 */
14
15 /***
16 * SMIMEIOException is exception which is thrown in the classes specific
17 * for SMIME and in the processes associated with SMIME, but only where is imposible
18 * to throw SMIMEException instead of IOException. This is situation, for example,
19 * in case of implementation of interfaces whose methods are defined to throw
20 * IOException. If in such method SMIMEException occures, we must
21 * throw SMIMEIOException (which has posibilities to carry SMIMEException object
22 * that can be examined in higher instance) instead of it.
23 */
24 public class SMIMEIOException extends IOException {
25
26 /***
27 * Container for carryng SMIMEException object.
28 */
29 private SMIMEException smimeException = null;
30
31 /***
32 * Construction with SMIMEException object as parameter.
33 * @param exception0 SMIMEException object which is reason for throwing
34 * SMIMEIOException exception.
35 */
36 public SMIMEIOException(SMIMEException exception0) {
37 super(exception0.getInformation());
38 smimeException = exception0;
39 }
40
41 /***
42 * Gets stored SMIMEException object.
43 */
44 public SMIMEException getSMIMEException() {
45 return smimeException;
46 }
47 }
This page was automatically generated by Maven