| Modifier and Type | Method and Description |
|---|---|
Error |
build()
Builds a new
Error. |
Error.Builder |
code(Integer code)
Initializes the value for the
code attribute. |
Error.Builder |
from(Error instance)
Fill a builder with attribute values from the provided
Error instance. |
Error.Builder |
message(String message)
Initializes the value for the
message attribute. |
Error.Builder |
source(String source)
Initializes the value for the
source attribute. |
public final Error.Builder from(Error instance)
Error instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Error.Builder code(Integer code)
code attribute.code - The value for codethis builder for use in a chained invocationpublic final Error.Builder message(String message)
message attribute.message - The value for messagethis builder for use in a chained invocationpublic final Error.Builder source(String source)
source attribute.source - The value for sourcethis builder for use in a chained invocationpublic Error build()
Error.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.