org.jclouds.savvis.vpdc.domain
Class TaskError

java.lang.Object
  extended by org.jclouds.savvis.vpdc.domain.TaskError

public class TaskError
extends Object

Author:
Adrian Cole

Nested Class Summary
static class TaskError.Builder
           
 
Constructor Summary
TaskError(String message, int majorErrorCode, int minorErrorCode, String vendorSpecificErrorCode)
           
 
Method Summary
static TaskError.Builder builder()
           
 boolean equals(Object obj)
           
 int getMajorErrorCode()
           
 String getMessage()
           
 int getMinorErrorCode()
           
 String getVendorSpecificErrorCode()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskError

public TaskError(String message,
                 int majorErrorCode,
                 int minorErrorCode,
                 @Nullable
                 String vendorSpecificErrorCode)
Method Detail

builder

public static TaskError.Builder builder()

getMessage

public String getMessage()
Returns:
message describing the error

getMajorErrorCode

public int getMajorErrorCode()
Returns:
matches the HTTP status code

getMinorErrorCode

public int getMinorErrorCode()
Returns:
matches the minor code, typically -1

getVendorSpecificErrorCode

@Nullable
public String getVendorSpecificErrorCode()
Returns:
optional additional information about the source of the error

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.