Package org.bremersee.exception
Interface ServiceExceptionBuilder<T extends ServiceException>
- Type Parameters:
T
- the type parameter
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractServiceExceptionBuilder
The service exception builder.
- Author:
- Christian Bremer
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the service exception.Sets cause on service exception builder.Sets error code on service exception builder.from
(ServiceException serviceException) From another service exception.httpStatus
(int httpStatus) Sets http status on service exception builder.Sets reason on service exception builder.
-
Method Details
-
httpStatus
Sets http status on service exception builder.- Parameters:
httpStatus
- the http status- Returns:
- the service exception builder
-
errorCode
Sets error code on service exception builder.- Parameters:
errorCode
- the error code- Returns:
- the service exception builder
-
reason
Sets reason on service exception builder.- Parameters:
reason
- the reason- Returns:
- the service exception builder
-
cause
Sets cause on service exception builder.- Parameters:
cause
- the cause- Returns:
- the service exception builder
-
from
From another service exception.- Parameters:
serviceException
- the other service exception- Returns:
- the service exception builder
-
build
T build()Build the service exception.- Returns:
- the service exception
-