1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package com.xpn.xwiki.plugin.activitystream.api

File ActivityStreamException.java

 

Coverage histogram

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

Code metrics

0
3
4
1
75
22
4
1.33
0.75
4
1

Classes

Class Line # Actions
ActivityStreamException 30 3 0% 4 7
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 com.xpn.xwiki.plugin.activitystream.api;
21   
22    import com.xpn.xwiki.XWikiException;
23   
24    /**
25    * Exception to use in the activity stream plugin. It extends {@link XWikiException}.
26    *
27    * @version $Id: 8a3f2a2209236f13060632a0b070bbf595777cf8 $
28    */
29    @SuppressWarnings("serial")
 
30    public class ActivityStreamException extends XWikiException
31    {
32    /**
33    * Error code for the activity stream.
34    */
35    public static final int MODULE_PLUGIN_ACTIVITY_STREAM = 102;
36   
37    /**
38    * @see XWikiException#XWikiException()
39    */
 
40  0 toggle public ActivityStreamException()
41    {
42    }
43   
44    /**
45    * @see XWikiException#XWikiException(int, int, String)
46    * @param module source of the exception
47    * @param code error code to use
48    * @param message message to display
49    */
 
50  0 toggle public ActivityStreamException(int module, int code, String message)
51    {
52  0 super(module, code, message);
53    }
54   
55    /**
56    * @see XWikiException#XWikiException(int, int, String, Throwable)
57    * @param module source of the exception
58    * @param code error code to use
59    * @param message message to display
60    * @param e wrapped exception
61    */
 
62  0 toggle public ActivityStreamException(int module, int code, String message, Exception e)
63    {
64  0 super(module, code, message, e);
65    }
66   
67    /**
68    * @see Exception#Exception(Throwable)
69    * @param e wrapped exception
70    */
 
71  0 toggle public ActivityStreamException(XWikiException e)
72    {
73  0 super(e.getModule(), e.getCode(), e.getMessage(), e.getCause(), e.getArgs());
74    }
75    }