org.jclouds.vcloud.domain.internal
Class ErrorImpl
java.lang.Object
org.jclouds.vcloud.domain.internal.ErrorImpl
- All Implemented Interfaces:
- VCloudError
public class ErrorImpl
- extends Object
- implements VCloudError
- Author:
- Adrian Cole
ErrorImpl
public ErrorImpl(String message,
int majorErrorCode,
@Nullable
VCloudError.MinorCode minorErrorCode,
@Nullable
String vendorSpecificErrorCode,
@Nullable
String stackTrace)
getMessage
public String getMessage()
- Specified by:
getMessage
in interface VCloudError
- Returns:
- message describing the error
getMajorErrorCode
public int getMajorErrorCode()
- Specified by:
getMajorErrorCode
in interface VCloudError
- Returns:
- matches the HTTP status code
getMinorErrorCode
public VCloudError.MinorCode getMinorErrorCode()
- Specified by:
getMinorErrorCode
in interface VCloudError
- Returns:
- error code specific to the failed operation or null if vcloud <0.9
getVendorSpecificErrorCode
public String getVendorSpecificErrorCode()
- Specified by:
getVendorSpecificErrorCode
in interface VCloudError
- Returns:
- optional additional information about the source of the error
getStackTrace
public String getStackTrace()
- Specified by:
getStackTrace
in interface VCloudError
- Returns:
- stack trace of the error, if available. This attribute is returned only when a request
is made by the system administrator.
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-2012 jclouds. All Rights Reserved.