View Javadoc

1   /* This file is part of COPAL (COntext Provisioning for All).
2    *
3    * COPAL is a part of SM4All (Smart hoMes for All) project.
4    *
5    * COPAL is free software: you can redistribute it and/or modify
6    * it under the terms of the GNU Lesser General Public License as published by
7    * the Free Software Foundation, either version 3 of the License, or
8    * (at your option) any later version.
9    *
10   * COPAL is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU Lesser General Public License for more details.
14   *
15   * You should have received a copy of the GNU Lesser General Public License
16   * along with COPAL. If not, see <http://www.gnu.org/licenses/>.
17   */
18  package at.ac.tuwien.infosys.sm4all.copal.api.util;
19  
20  import at.ac.tuwien.infosys.sm4all.copal.api.event.MalformedDocumentException;
21  
22  /**
23   * Exception when unmarshalling of a value fails.
24   * 
25   * @author sanjin
26   */
27  public class FailedUnmarshallingException extends MalformedDocumentException {
28  
29      private static final long serialVersionUID = 4462925079459481802L;
30  
31      /**
32       * Create instance of failed unmarshalling exception with the specified
33       * detail message. The cause is not initialized, and may subsequently be
34       * initialized by a call to {@link #initCause(Throwable)}.
35       * 
36       * @param message the detail message (which is saved for later retrieval by
37       *        the {@link #getMessage()} method).
38       */
39      public FailedUnmarshallingException(final String message) {
40          super(message);
41      }
42  
43      /**
44       * Create instance of failed unmarshalling exception with the specified
45       * detail message and cause.
46       * 
47       * @param message the detail message (which is saved for later retrieval by
48       *        the {@link #getMessage()} method).
49       * @param cause the cause (which is saved for later retrieval by the
50       *        {@link #getCause()} method). A <code>null</code> value is
51       *        permitted, and indicates that the cause is nonexistent or unknown.
52       */
53      public FailedUnmarshallingException(final String message,
54              final Throwable cause) {
55          super(message, cause);
56      }
57  }