Package net.morimekta.providence
Interface PApplicationException_OrBuilder
-
- All Superinterfaces:
PMessageOrBuilder<PApplicationException>
,PValue<PApplicationException>
- All Known Implementing Classes:
PApplicationException
,PApplicationException._Builder
@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") public interface PApplicationException_OrBuilder extends PMessageOrBuilder<PApplicationException>
Base exception thrown on non-declared exceptions on a service call, and other server-side service call issues.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getMessage()
Exception message.PApplicationExceptionType
getType()
The application exception type.boolean
hasMessage()
boolean
hasType()
java.util.Optional<java.lang.String>
optionalMessage()
Exception message.java.util.Optional<PApplicationExceptionType>
optionalType()
The application exception type.-
Methods inherited from interface net.morimekta.providence.PMessageOrBuilder
descriptor, get, get, has, has, toBuilder, toMessage
-
-
-
-
Method Detail
-
getMessage
java.lang.String getMessage()
Exception message.- Returns:
- The message value.
-
optionalMessage
@Nonnull java.util.Optional<java.lang.String> optionalMessage()
Exception message.- Returns:
- Optional message value.
-
hasMessage
boolean hasMessage()
- Returns:
- If message is present.
-
getType
PApplicationExceptionType getType()
The application exception type.- Returns:
- The type value.
-
optionalType
@Nonnull java.util.Optional<PApplicationExceptionType> optionalType()
The application exception type.- Returns:
- Optional type value.
-
hasType
boolean hasType()
- Returns:
- If type is present.
-
-