Brooklyn

brooklyn.rest.domain
[Java] Class ApiError.Builder

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

public static class ApiError.Builder

Method Summary
ApiError build()

Builder copy(ApiError error)

Builder details(java.lang.String details)

Builder fromApiError(ApiError error)

@deprecated since 0.7.0; use copy(ApiError)

java.lang.String getMessage()

Builder message(java.lang.String message)

Builder prefixMessage(java.lang.String prefix, java.lang.String separatorIfMessageNotBlank)

puts a prefix in front of the message, with the given separator if there is already a message; if there is no message, it simply sets the prefix as the message

 
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

build

public ApiError build()


copy

public Builder copy(ApiError error)


details

public Builder details(java.lang.String details)


fromApiError

@java.lang.Deprecated
public Builder fromApiError(ApiError error)
deprecated:
since 0.7.0; use copy(ApiError)


getMessage

public java.lang.String getMessage()


message

public Builder message(java.lang.String message)


prefixMessage

public Builder prefixMessage(java.lang.String prefix, java.lang.String separatorIfMessageNotBlank)
puts a prefix in front of the message, with the given separator if there is already a message; if there is no message, it simply sets the prefix as the message


 

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