Class ExceptionHandlerBuilder
java.lang.Object
org.apache.pekko.http.javadsl.server.ExceptionHandlerBuilder
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()<P extends Throwable>
 ExceptionHandlerBuilderAdd a new case statement to this builder.<P extends Throwable>
 ExceptionHandlerBuildermatch(Class<P> type, org.apache.pekko.japi.pf.FI.TypedPredicate<P> predicate, org.apache.pekko.japi.pf.FI.Apply<P, Route> apply) Add a new case statement to this builder.Add a new case statement to this builder, that matches any argument.<P extends Throwable>
 ExceptionHandlerBuildermatchEquals(P object, org.apache.pekko.japi.pf.FI.Apply<P, Route> apply) Add a new case statement to this builder.
- 
Constructor Details- 
ExceptionHandlerBuilderpublic ExceptionHandlerBuilder()
 
- 
- 
Method Details- 
matchpublic <P extends Throwable> ExceptionHandlerBuilder match(Class<P> type, org.apache.pekko.japi.pf.FI.Apply<P, Route> apply) Add a new case statement to this builder.- Parameters:
- type- a type to match the argument against
- apply- an action to apply to the argument if the type matches
- Returns:
- a builder with the case statement added
 
- 
matchpublic <P extends Throwable> ExceptionHandlerBuilder match(Class<P> type, org.apache.pekko.japi.pf.FI.TypedPredicate<P> predicate, org.apache.pekko.japi.pf.FI.Apply<P, Route> apply) Add a new case statement to this builder.- Parameters:
- type- a type to match the argument against
- predicate- a predicate that will be evaluated on the argument if the type matches
- apply- an action to apply to the argument if the type matches and the predicate returns true
- Returns:
- a builder with the case statement added
 
- 
matchEqualspublic <P extends Throwable> ExceptionHandlerBuilder matchEquals(P object, org.apache.pekko.japi.pf.FI.Apply<P, Route> apply) Add a new case statement to this builder.- Parameters:
- object- the object to compare equals with
- apply- an action to apply to the argument if the object compares equal
- Returns:
- a builder with the case statement added
 
- 
matchAnyAdd a new case statement to this builder, that matches any argument.- Parameters:
- apply- an action to apply to the argument
- Returns:
- a builder with the case statement added
 
- 
build
 
-