@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") @Immutable public class PApplicationException extends IOException implements PApplicationException_OrBuilder, PMessage<PApplicationException>, PException, Comparable<PApplicationException>, BinaryWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
PApplicationException._Builder
Base exception thrown on non-declared exceptions on a service call, and
other server-side service call issues.
|
static class |
PApplicationException._Field |
| Modifier and Type | Field and Description |
|---|---|
static PExceptionDescriptor<PApplicationException> |
kDescriptor |
| Constructor and Description |
|---|
PApplicationException(String pMessage,
PApplicationExceptionType pType) |
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Pure string representation of content.
|
static PApplicationException._Builder |
builder()
Make a
p_service.PApplicationException builder. |
int |
compareTo(PApplicationException other) |
PExceptionDescriptor<PApplicationException> |
descriptor() |
boolean |
equals(Object o) |
PApplicationException |
fillInStackTrace() |
<T> T |
get(int key) |
String |
getMessage()
Exception message.
|
PApplicationExceptionType |
getType()
The application exception type.
|
boolean |
has(int key) |
int |
hashCode() |
boolean |
hasMessage() |
boolean |
hasType() |
PApplicationException |
initCause(Throwable cause) |
PApplicationException._Builder |
mutate()
Get a builder that extends the current object.
|
Optional<String> |
optionalMessage()
Exception message.
|
Optional<PApplicationExceptionType> |
optionalType()
The application exception type.
|
String |
origGetLocalizedMessage()
Get the original message from the actual exception.
|
String |
origGetMessage()
Get the original message from the actual exception.
|
static PExceptionDescriptorProvider<PApplicationException> |
provider() |
String |
toString() |
int |
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
Write the current message to the binary writer.
|
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTraceclone, finalize, getClass, notify, notifyAll, wait, wait, waittoBuilder, toMessagepublic static final PExceptionDescriptor<PApplicationException> kDescriptor
public PApplicationException(String pMessage, PApplicationExceptionType pType)
public boolean hasMessage()
hasMessage in interface PApplicationException_OrBuilderpublic String getMessage()
getMessage in interface PApplicationException_OrBuildergetMessage in class Throwablemessage value@Nonnull public Optional<String> optionalMessage()
optionalMessage in interface PApplicationException_OrBuildermessage field value.public boolean hasType()
hasType in interface PApplicationException_OrBuilderpublic PApplicationExceptionType getType()
getType in interface PApplicationException_OrBuildertype value@Nonnull public Optional<PApplicationExceptionType> optionalType()
optionalType in interface PApplicationException_OrBuildertype field value.public boolean has(int key)
has in interface PMessageOrBuilder<PApplicationException>key - The key of the field.public <T> T get(int key)
get in interface PMessageOrBuilder<PApplicationException>T - The return type.key - The key of the field.public String origGetMessage()
PExceptionorigGetMessage in interface PExceptionpublic String origGetLocalizedMessage()
PExceptionorigGetLocalizedMessage in interface PExceptionpublic PApplicationException initCause(Throwable cause)
public PApplicationException fillInStackTrace()
fillInStackTrace in class Throwable@Nonnull public String asString()
PMessageasString in interface PMessage<PApplicationException>asString in interface net.morimekta.util.Stringablepublic int compareTo(PApplicationException other)
compareTo in interface Comparable<PApplicationException>public int writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
throws IOException
BinaryWriterBinarySerializer.serialize(OutputStream, PMessageOrBuilder)
call.writeBinary in interface BinaryWriterwriter - The binary writer to write to.IOException - If it failed to write the message for any reason.@Nonnull public PApplicationException._Builder mutate()
PMessagemutate in interface PMessage<PApplicationException>@Nonnull public static PExceptionDescriptorProvider<PApplicationException> provider()
@Nonnull public PExceptionDescriptor<PApplicationException> descriptor()
descriptor in interface PMessageOrBuilder<PApplicationException>descriptor in interface PValue<PApplicationException>public static PApplicationException._Builder builder()
p_service.PApplicationException builder.Copyright © 2015–2020 morimekta.net. All rights reserved.