Clover Coverage Report - ARESTC 0.1.7-SNAPSHOT
Coverage timestamp: Fri Aug 27 2010 19:12:04 CEST
../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
9   102   5   1.8
0   28   0.56   5
5     1  
1    
 
  BaseError       Line # 31 9 0% 5 0 100% 1.0
 
  (4)
 
1    /*
2    *
3    * (C)opyright 2010, Nikolaos Georgosopoulos
4    *
5    * This file is part of ARESTC.
6   
7    ARESTC is free software: you can redistribute it and/or modify
8    it under the terms of the Lesser General Public License as published by
9    the Free Software Foundation, either version 3 of the License, or
10    (at your option) any later version.
11   
12    ARESTC is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15    GNU General Public License for more details.
16   
17    You should have received a copy of the Lesser General Public License
18    along with ARESTC. If not, see <http://www.gnu.org/licenses/>.
19   
20    */
21    package net.sf.arestc.core;
22   
23    import net.sf.arestc.core.services.RESTService;
24   
25    // TODO: Auto-generated Javadoc
26    /**
27    * The Class BaseError.
28    *
29    * @author georgosn
30    */
 
31    public class BaseError implements ARESTCError {
32   
33    /** The code. */
34    private final int code;
35   
36    /** The Command. */
37    private final ConnectorCommand Command;
38   
39    /** The description. */
40    private final String description;
41   
42    /** The service. */
43    private final RESTService service;
44   
45    /**
46    * Instantiates a new base error.
47    *
48    * @param code
49    * the code
50    * @param command
51    * the command
52    * @param description
53    * the description
54    * @param service
55    * the service
56    */
 
57  4 toggle public BaseError(final int code, final ConnectorCommand command,
58    final String description, final RESTService service) {
59  4 super();
60  4 this.code = code;
61  4 Command = command;
62  4 this.description = description;
63  4 this.service = service;
64    }
65   
66    /*
67    * (non-Javadoc)
68    *
69    * @see net.sf.arestc.core.ARESTCError#getCode()
70    */
 
71  1 toggle public int getCode() {
72  1 return code;
73    }
74   
75    /*
76    * (non-Javadoc)
77    *
78    * @see net.sf.arestc.core.ARESTCError#getCommand()
79    */
 
80  1 toggle public ConnectorCommand getCommand() {
81  1 return Command;
82    }
83   
84    /*
85    * (non-Javadoc)
86    *
87    * @see net.sf.arestc.core.ARESTCError#getDescription()
88    */
 
89  1 toggle public String getDescription() {
90  1 return description;
91    }
92   
93    /*
94    * (non-Javadoc)
95    *
96    * @see net.sf.arestc.core.ARESTCError#getService()
97    */
 
98  1 toggle public RESTService getService() {
99  1 return service;
100    }
101   
102    }