org.jclouds.vcloud.domain.internal
Class ErrorImpl

java.lang.Object
  extended by org.jclouds.vcloud.domain.internal.ErrorImpl
All Implemented Interfaces:
VCloudError

public class ErrorImpl
extends Object
implements VCloudError

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.vcloud.domain.VCloudError
VCloudError.MinorCode
 
Constructor Summary
ErrorImpl(String message, int majorErrorCode, VCloudError.MinorCode minorErrorCode, String vendorSpecificErrorCode, String stackTrace)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getMajorErrorCode()
           
 String getMessage()
           
 VCloudError.MinorCode getMinorErrorCode()
           
 String getStackTrace()
           
 String getVendorSpecificErrorCode()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorImpl

public ErrorImpl(String message,
                 int majorErrorCode,
                 @Nullable
                 VCloudError.MinorCode minorErrorCode,
                 @Nullable
                 String vendorSpecificErrorCode,
                 @Nullable
                 String stackTrace)
Method Detail

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-2011 jclouds. All Rights Reserved.