Brooklyn

brooklyn.rest.domain
[Java] Class ApiError

java.lang.Object
  brooklyn.rest.domain.ApiError

public class ApiError

Nested Class Summary
static class ApiError.Builder

 
Method Summary
java.lang.Object ApiError(java.lang.String message, java.lang.String details)

static ApiError.Builder builder()

static ApiError.Builder builderFromThrowable(java.lang.Throwable t)

@return An ApiError.Builder whose message is initialised to either the throwable's message or the throwable's class name if the message is null and whose details are initialised to the throwable's stack trace.

boolean equals(java.lang.Object other)

static ApiError.Builder fromThrowable(java.lang.Throwable t)

@deprecated since 0.7.0; use builderFromThrowable(Throwable)

java.lang.String getDetails()

java.lang.String getMessage()

int hashCode()

static ApiError of(java.lang.Throwable t)

static ApiError of(java.lang.String message)

java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

ApiError

public java.lang.Object ApiError(@JsonProperty("message") java.lang.String message, @JsonProperty("details") java.lang.String details)


builder

public static ApiError.Builder builder()


builderFromThrowable

public static ApiError.Builder builderFromThrowable(java.lang.Throwable t)
Returns:
An ApiError.Builder whose message is initialised to either the throwable's message or the throwable's class name if the message is null and whose details are initialised to the throwable's stack trace.


equals

@java.lang.Override
public boolean equals(java.lang.Object other)


fromThrowable

@java.lang.Deprecated
public static ApiError.Builder fromThrowable(java.lang.Throwable t)
deprecated:
since 0.7.0; use builderFromThrowable(Throwable)


getDetails

public java.lang.String getDetails()


getMessage

public java.lang.String getMessage()


hashCode

@java.lang.Override
public int hashCode()


of

public static ApiError of(java.lang.Throwable t)


of

public static ApiError of(java.lang.String message)


toString

@java.lang.Override
public java.lang.String toString()


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.