@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, setStackTrace
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toBuilder, toMessage
public static final PExceptionDescriptor<PApplicationException> kDescriptor
public PApplicationException(String pMessage, PApplicationExceptionType pType)
public boolean hasMessage()
hasMessage
in interface PApplicationException_OrBuilder
public String getMessage()
getMessage
in interface PApplicationException_OrBuilder
getMessage
in class Throwable
message
value@Nonnull public Optional<String> optionalMessage()
optionalMessage
in interface PApplicationException_OrBuilder
message
field value.public boolean hasType()
hasType
in interface PApplicationException_OrBuilder
public PApplicationExceptionType getType()
getType
in interface PApplicationException_OrBuilder
type
value@Nonnull public Optional<PApplicationExceptionType> optionalType()
optionalType
in interface PApplicationException_OrBuilder
type
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()
PException
origGetMessage
in interface PException
public String origGetLocalizedMessage()
PException
origGetLocalizedMessage
in interface PException
public PApplicationException initCause(Throwable cause)
public PApplicationException fillInStackTrace()
fillInStackTrace
in class Throwable
@Nonnull public String asString()
PMessage
asString
in interface PMessage<PApplicationException>
asString
in interface net.morimekta.util.Stringable
public int compareTo(PApplicationException other)
compareTo
in interface Comparable<PApplicationException>
public int writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) throws IOException
BinaryWriter
BinarySerializer.serialize(OutputStream, PMessageOrBuilder)
call.writeBinary
in interface BinaryWriter
writer
- The binary writer to write to.IOException
- If it failed to write the message for any reason.@Nonnull public PApplicationException._Builder mutate()
PMessage
mutate
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.