1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.store

File UnexpectedException.java

 

Coverage histogram

../../../img/srcFileCovDistChart0.png
83% of files have more coverage

Code metrics

0
4
4
1
70
20
4
1
1
4
1

Classes

Class Line # Actions
UnexpectedException 30 4 0% 4 8
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software 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 GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.store;
21   
22    /**
23    * An exception which is unreasonable to expect and is caused by misconfiguration or
24    * system failure. This is identical to {@link java.lang.RuntimeException} but subclasses
25    * it just so that it can be caught if desired.
26    *
27    * @version $Id: db0cf3c7dbee37ea80d507a70b970f25694bd700 $
28    * @since 3.3M1
29    */
 
30    public class UnexpectedException extends RuntimeException
31    {
32    /**
33    * Constructs a new unexpected exception with null as its detail message.
34    */
 
35  0 toggle public UnexpectedException()
36    {
37  0 super();
38    }
39   
40    /**
41    * Constructs a new unexpected exception with the specified detail message.
42    *
43    * @param message the String to explain the exception.
44    */
 
45  0 toggle public UnexpectedException(final String message)
46    {
47  0 super(message);
48    }
49   
50    /**
51    * Constructs a new unexpected exception with the specified detail message and cause.
52    *
53    * @param message the String to explain the exception.
54    * @param cause the Throwable which caused this exception.
55    */
 
56  0 toggle public UnexpectedException(final String message, final Throwable cause)
57    {
58  0 super(message, cause);
59    }
60   
61    /**
62    * Constructs a new unexpected exception with the specified cause.
63    *
64    * @param cause the Throwable which caused this exception.
65    */
 
66  0 toggle public UnexpectedException(final Throwable cause)
67    {
68  0 super(cause);
69    }
70    }