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

File SchedulerPluginException.java

 

Coverage histogram

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

Code metrics

0
3
3
1
73
31
3
1
1
3
1

Classes

Class Line # Actions
SchedulerPluginException 29 3 0% 3 6
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.scheduler;
21   
22    import com.xpn.xwiki.plugin.PluginException;
23   
24    /**
25    * An exception that might be thrown when doing various tasks in the scheduler plugin.
26    *
27    * @version $Id: 1937539ad1b43353954d8f34eeebd773dcbd5739 $
28    */
 
29    public class SchedulerPluginException extends PluginException
30    {
31    protected static final int ERROR_SCHEDULERPLUGIN_SAVE_JOB_CLASS = 90000;
32   
33    protected static final int ERROR_SCHEDULERPLUGIN_INITIALIZE_STATUS_LISTENER = 90001;
34   
35    protected static final int ERROR_SCHEDULERPLUGIN_PAUSE_JOB = 90002;
36   
37    protected static final int ERROR_SCHEDULERPLUGIN_RESUME_JOB = 90003;
38   
39    protected static final int ERROR_SCHEDULERPLUGIN_SCHEDULE_JOB = 90004;
40   
41    protected static final int ERROR_SCHEDULERPLUGIN_BAD_CRON_EXPRESSION = 90005;
42   
43    protected static final int ERROR_SCHEDULERPLUGIN_JOB_XCLASS_NOT_FOUND = 90006;
44   
45    protected static final int ERROR_SCHEDULERPLUGIN_JOB_DOES_NOT_EXITS = 90007;
46   
47    protected static final int ERROR_SCHEDULERPLUGIN_GET_SCHEDULER = 90007;
48   
49    protected static final int ERROR_SCHEDULERPLUGIN_RESTORE_JOB = 90008;
50   
51    protected static final int ERROR_SCHEDULERPLUGIN_RESTORE_EXISTING_JOBS = 90009;
52   
53    protected static final int ERROR_SCHEDULERPLUGIN_UNABLE_TO_RETRIEVE_JOB = 90010;
54   
55    protected static final int ERROR_SCHEDULERPLUGIN_UNABLE_TO_PREPARE_JOB_CONTEXT = 90011;
56   
57    protected static final int ERROR_SCHEDULERPLUGIN_TRIGGER_JOB = 90012;
58   
 
59  0 toggle public SchedulerPluginException(int code, String message)
60    {
61  0 super(SchedulerPlugin.class, code, message);
62    }
63   
 
64  0 toggle public SchedulerPluginException(int code, String message, Throwable e, Object[] args)
65    {
66  0 super(SchedulerPlugin.class, code, message, e, args);
67    }
68   
 
69  0 toggle public SchedulerPluginException(int code, String message, Throwable e)
70    {
71  0 super(SchedulerPlugin.class, code, message, e);
72    }
73    }