Package org.apache.juneau.http.response
Class PreconditionFailed.Unmodifiable
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.http.response.BasicHttpException
org.apache.juneau.http.response.PreconditionFailed
org.apache.juneau.http.response.PreconditionFailed.Unmodifiable
- All Implemented Interfaces:
Serializable,HttpResponseMessage,UnmodifiableBean
- Enclosing class:
- PreconditionFailed
public static class PreconditionFailed.Unmodifiable
extends PreconditionFailed
implements UnmodifiableBean
Unmodifiable point-in-time snapshot of the enclosing
PreconditionFailed exception.
Its only behavioral override is modify(Runnable), which throws — because all mutation is funneled through
modify(...), this single override freezes the entire mutation surface.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.http.response.PreconditionFailed
PreconditionFailed.Unmodifiable -
Field Summary
Fields inherited from class org.apache.juneau.http.response.PreconditionFailed
REASON_PHRASE, STATUS_CODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicHttpExceptionSingle mutation funnel — the only choke-point through which all state changes on this bean flow.Methods inherited from class org.apache.juneau.http.response.PreconditionFailed
unmodifiableMethods inherited from class org.apache.juneau.http.response.BasicHttpException
addHeader, addHeader, equals, freeze, getBody, getFullStackMessage, getHeaders, getLocale, getMessage, getRootCause, getStatusCode, getStatusLine, hashCode, isUnmodifiable, setBody, setContent, setContent, setHeader, setHeader, setHeaders, setHeaders, setLocale, setProtocolVersion, setReasonPhrase, setStatusCode, setStatusLine, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.juneau.http.response.HttpResponseMessage
getFirstHeader, getHeaders
-
Constructor Details
-
Unmodifiable
Constructor.- Parameters:
copyFrom- The exception to snapshot. Must not benull .
-
-
Method Details
-
modify
Description copied from class:BasicHttpExceptionSingle mutation funnel — the only choke-point through which all state changes on this bean flow.Every fluent setter routes through this method. The nested
Unmodifiablesnapshot overrides only this method to throw, which freezes the entire mutation surface with a single override. Because this is aThrowable-rooted hierarchy (no CRTP self-type), the funnel returns the base type.- Overrides:
modifyin classBasicHttpException- Parameters:
mutation- The state change to apply.- Returns:
- This object.
-