B - Any instance type of the hierarchy of ErrorDetails.Builder, required to allow the
hierarchy in the builders.E - Any class extending of ErrorDetails which will be generated by the
builder.public static class ErrorDetails.Builder<B extends ErrorDetails.Builder<B,E>,E extends ErrorDetails> extends EventDetails.Builder<B,E>
ErrorDetails.mapBuilder| Modifier | Constructor and Description |
|---|---|
|
Builder()
Initializes the builder with the required parameters
|
protected |
Builder(AbiquoError error,
ErrorScope scope)
Initializes the builder with the required parameters
AbiquoError error and
ErrorScope scope. |
protected |
Builder(AbiquoError error,
ErrorScope scope,
java.lang.Throwable throwable)
Initializes the builder with the required parameters
AbiquoError error and
ErrorScope scope and the optional parameter stacktrace of the Throwable. |
protected |
Builder(java.util.List<AbiquoError> errors,
ErrorScope scope)
Initializes the builder with the required parameters
AbiquoError errors and
ErrorScope scope. |
protected |
Builder(java.util.List<AbiquoError> errors,
ErrorScope scope,
java.lang.Throwable throwable)
Initializes the builder with the required parameters
AbiquoError errors and
ErrorScope scope and the optional parameter stacktrace of the Throwable. |
|
Builder(java.lang.String code,
java.lang.String scope,
java.lang.String message)
Initializes the builder with the required parameters
|
| Modifier and Type | Method and Description |
|---|---|
E |
build()
Builds the
E event details. |
B |
code(java.lang.String code) |
B |
error(AbiquoError error) |
B |
message(java.lang.String message) |
B |
scope(java.lang.String scope) |
protected B |
self()
Returns an instance of the specific builder.
|
B |
stacktrace(java.lang.String stacktrace)
Sets a stacktrace generated by the
Throwable which has caused the error. |
messageArgs, messageArgsCollection, put, putprotected Builder(AbiquoError error, ErrorScope scope)
AbiquoError error and
ErrorScope scope.error - the AbiquoError which has promoted the eventscope - the ErrorScope which has affected by the error of the eventprotected Builder(java.util.List<AbiquoError> errors, ErrorScope scope)
AbiquoError errors and
ErrorScope scope.errors - the AbiquoError which have promoted the eventscope - the ErrorScope which has affected by the error of the eventprotected Builder(AbiquoError error, ErrorScope scope, java.lang.Throwable throwable)
AbiquoError error and
ErrorScope scope and the optional parameter stacktrace of the Throwable.error - the AbiquoError which has promoted the eventscope - the ErrorScope which has affected by the error of the eventstacktrace - the stacktrace of the Throwable which has caused the errorprotected Builder(java.util.List<AbiquoError> errors, ErrorScope scope, java.lang.Throwable throwable)
AbiquoError errors and
ErrorScope scope and the optional parameter stacktrace of the Throwable.errors - the AbiquoError which have promoted the eventscope - the ErrorScope which has affected by the error of the eventstacktrace - the stacktrace of the Throwable which has caused the errorpublic Builder(java.lang.String code,
java.lang.String scope,
java.lang.String message)
code - the code of an abiquo api errormessage - the message an abiquo api errorscope - the stacktrace generated by the errorpublic Builder()
code - the code of an abiquo api errormessage - the message an abiquo api errorscope - the stacktrace generated by the errorpublic E build()
EventDetails.BuilderE event details.build in class EventDetails.Builder<B extends ErrorDetails.Builder<B,E>,E extends ErrorDetails>com.abiquo.events.model.details.EventDetails.DetailsBuilder#build()protected B self()
EventDetails.Builderself in class EventDetails.Builder<B extends ErrorDetails.Builder<B,E>,E extends ErrorDetails>com.abiquo.model.details.EventDetails.Builder#self()public B stacktrace(java.lang.String stacktrace)
Throwable which has caused the error.value - a stacktrace generated by the Throwable which has caused the errorErrorDetails.Builderpublic B code(java.lang.String code)
public B error(AbiquoError error)
public B message(java.lang.String message)
public B scope(java.lang.String scope)
Copyright © 2008-2020 Abiquo Holdings S.L.. All Rights Reserved.