EMMA Coverage Report (generated Wed Jun 22 19:47:49 EDT 2011)
[all classes][org.jclouds.atmos.domain]

COVERAGE SUMMARY FOR SOURCE FILE [AtmosError.java]

nameclass, %method, %block, %line, %
AtmosError.java100% (1/1)33%  (2/6)22%  (12/54)50%  (5/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AtmosError100% (1/1)33%  (2/6)22%  (12/54)50%  (5/10)
getMessage (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getStringSigned (): String 0%   (0/1)0%   (0/3)0%   (0/1)
setStringSigned (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
toString (): String 0%   (0/1)0%   (0/32)0%   (0/1)
AtmosError (int, String): void 100% (1/1)100% (9/9)100% (4/4)
getCode (): int 100% (1/1)100% (3/3)100% (1/1)

1/**
2 *
3 * Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
4 *
5 * ====================================================================
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 * ====================================================================
18 */
19package org.jclouds.atmos.domain;
20 
21/**
22 * When an Atmos Storage request is in error, the client receives an error response.
23 * 
24 * Provides access to EMC Atmos Online Storage resources via their REST API.
25 * 
26 * @author Adrian Cole
27 * 
28 */
29public class AtmosError {
30   private final int code;
31   private final String message;
32   private String stringSigned;
33 
34   @Override
35   public String toString() {
36      return "AtmosError [code=" + code + ", message=" + message
37               + (stringSigned != null ? (", stringSigned=" + stringSigned) : "") + "]";
38   }
39 
40   public AtmosError(int code, String message) {
41      this.code = code;
42      this.message = message;
43   }
44 
45   public int getCode() {
46      return code;
47   }
48 
49   public String getMessage() {
50      return message;
51   }
52 
53   public void setStringSigned(String stringSigned) {
54      this.stringSigned = stringSigned;
55   }
56 
57   /**
58    * @return what jclouds signed before sending the request.
59    */
60   public String getStringSigned() {
61      return stringSigned;
62   }
63 
64}

[all classes][org.jclouds.atmos.domain]
EMMA 2.0.5312 (C) Vladimir Roubtsov