Class ApiRestException.BaseBuilder<B extends ApiRestException.BaseBuilder<B>>
java.lang.Object
io.helidon.integrations.common.rest.ApiRestException.BaseBuilder<B>
- Type Parameters:
B
- type of the subclass
- Direct Known Subclasses:
RestException.Builder
,VaultRestException.Builder
- Enclosing class:
ApiRestException
public abstract static class ApiRestException.BaseBuilder<B extends ApiRestException.BaseBuilder<B>>
extends Object
Base builder extended by specific builder class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiSpecificError
(String apiSpecificError) Error specific to the integrated system, configured by implementation of theRestApi
.Possible cause of this exception (such as when we fail to parse returned entity).HTTP headers configured byRestApi
.protected B
me()
Used to return correct type for setter methods of this builder.Message configured byRestApi
.Message configured byRestApi
.Request ID configured byRestApi
.HTTP status configured byRestApi
.
-
Constructor Details
-
BaseBuilder
public BaseBuilder()
-
-
Method Details
-
message
Message configured byRestApi
.- Parameters:
message
- message with explanation of exception- Returns:
- updated builder
-
message
Message configured byRestApi
.- Parameters:
format
- aFormatter
stringargs
- format string arguments- Returns:
- updated builder
-
requestId
Request ID configured byRestApi
.- Parameters:
requestId
- request ID- Returns:
- updated builder
-
status
HTTP status configured byRestApi
.- Parameters:
status
- returned status- Returns:
- updated builder
-
headers
HTTP headers configured byRestApi
.- Parameters:
headers
- returned headers- Returns:
- updated builder
-
apiSpecificError
Error specific to the integrated system, configured by implementation of theRestApi
.- Parameters:
apiSpecificError
- specific exception- Returns:
- updated builder
-
cause
Possible cause of this exception (such as when we fail to parse returned entity).- Parameters:
t
- cause of the new throwable- Returns:
- updated builder
-
me
Used to return correct type for setter methods of this builder.- Returns:
- instance of this class typed as the subclass
-