@Generated(value="providence-maven-plugin") @Immutable public class PApplicationException extends IOException implements PMessage<PApplicationException,PApplicationException._Field>, 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,PApplicationException._Field> |
kDescriptor |
Constructor and Description |
---|
PApplicationException(String pMessage,
PApplicationExceptionType pId) |
Modifier and Type | Method and Description |
---|---|
String |
asString()
Pure string representation of content.
|
static PApplicationException._Builder |
builder()
Make a service.PApplicationException builder.
|
int |
compareTo(PApplicationException other) |
PExceptionDescriptor<PApplicationException,PApplicationException._Field> |
descriptor() |
boolean |
equals(Object o) |
PApplicationException |
fillInStackTrace() |
<T> T |
get(int key) |
PApplicationExceptionType |
getId()
The application exception type.
|
String |
getMessage()
Exception message.
|
boolean |
has(int key) |
int |
hashCode() |
boolean |
hasId() |
boolean |
hasMessage() |
PApplicationException |
initCause(Throwable cause) |
PApplicationException._Builder |
mutate()
Get a builder that extends the current object.
|
Optional<PApplicationExceptionType> |
optionalId()
The application exception type.
|
Optional<String> |
optionalMessage()
Exception message.
|
String |
origGetLocalizedMessage()
Get the original message from the actual exception.
|
String |
origGetMessage()
Get the original message from the actual exception.
|
static PExceptionDescriptorProvider<PApplicationException,PApplicationException._Field> |
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
public static final PExceptionDescriptor<PApplicationException,PApplicationException._Field> kDescriptor
public PApplicationException(String pMessage, PApplicationExceptionType pId)
public boolean hasMessage()
public String getMessage()
getMessage
in class Throwable
@Nonnull public Optional<String> optionalMessage()
public boolean hasId()
public PApplicationExceptionType getId()
@Nonnull public Optional<PApplicationExceptionType> optionalId()
public boolean has(int key)
has
in interface PMessage<PApplicationException,PApplicationException._Field>
key
- The key of the field.public <T> T get(int key)
get
in interface PMessage<PApplicationException,PApplicationException._Field>
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,PApplicationException._Field>
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, PMessage)
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,PApplicationException._Field>
@Nonnull public static PExceptionDescriptorProvider<PApplicationException,PApplicationException._Field> provider()
@Nonnull public PExceptionDescriptor<PApplicationException,PApplicationException._Field> descriptor()
descriptor
in interface PMessage<PApplicationException,PApplicationException._Field>
descriptor
in interface PValue<PApplicationException>
public static PApplicationException._Builder builder()
Copyright © 2015–2018 morimekta.net. All rights reserved.