KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nanocontainer > integrationkit > PicoCompositionException


1 /*****************************************************************************
2  * Copyright (C) NanoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  * Original code by *
9  *****************************************************************************/

10 package org.nanocontainer.integrationkit;
11
12 import org.picocontainer.PicoException;
13
14 public class PicoCompositionException extends PicoException {
15
16     protected Throwable JavaDoc cause;
17
18     protected PicoCompositionException() {
19         super();
20     }
21
22     public PicoCompositionException(String JavaDoc message, Throwable JavaDoc cause) {
23         super(message);
24         this.cause = cause;
25     }
26
27     public PicoCompositionException(Throwable JavaDoc cause) {
28         this.cause = cause;
29     }
30
31     public PicoCompositionException(String JavaDoc message) {
32         super(message);
33         cause = null;
34     }
35
36     public Throwable JavaDoc getCause() {
37         return cause;
38     }
39 }
40
Popular Tags