org.jclouds.vcloud.director.v1_5.domain
Class Error

java.lang.Object
  extended by org.jclouds.vcloud.director.v1_5.domain.Error

public class Error
extends Object

The standard error message type used in the vCloud REST API.

 <xs:complexType name="ErrorType" />
 

Author:
grkvlt@apache.org

Nested Class Summary
static class Error.Builder
           
static class Error.Code
           
 
Field Summary
protected static org.jclouds.logging.Logger logger
           
static String MEDIA_TYPE
           
 
Method Summary
static Error.Builder builder()
           
 boolean equals(Object o)
           
 Integer getMajorErrorCode()
          The class of the error.
 String getMessage()
          An one line, human-readable message describing the error that occurred.
 String getMinorErrorCode()
          Specific API error code.
 String getStackTrace()
          The stack trace of the exception which when examined might make problem diagnostics easier.
 String getVendorSpecificErrorCode()
          A vendor/implementation specific error code that point to specific modules/parts of the code and can make problem diagnostics easier.
 int hashCode()
           
 Error.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected static org.jclouds.logging.Logger logger

MEDIA_TYPE

public static final String MEDIA_TYPE
See Also:
Constant Field Values
Method Detail

builder

public static Error.Builder builder()

toBuilder

public Error.Builder toBuilder()

getMessage

public String getMessage()
An one line, human-readable message describing the error that occurred.


getMajorErrorCode

public Integer getMajorErrorCode()
The class of the error. Matches the HTTP status code.


getMinorErrorCode

public String getMinorErrorCode()
Specific API error code. For example - can indicate that vApp power on failed by some reason.


getVendorSpecificErrorCode

public String getVendorSpecificErrorCode()
A vendor/implementation specific error code that point to specific modules/parts of the code and can make problem diagnostics easier.


getStackTrace

public String getStackTrace()
The stack trace of the exception which when examined might make problem diagnostics easier.


equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.