public static class PApplicationException._Builder extends PMessageBuilder<PApplicationException> implements PApplicationException_OrBuilder, BinaryReader
Constructor and Description |
---|
_Builder()
Make a p_service.PApplicationException builder instance.
|
_Builder(PApplicationException base)
Make a mutating builder off a base p_service.PApplicationException.
|
Modifier and Type | Method and Description |
---|---|
PApplicationException._Builder |
addTo(int key,
Object value)
Adds a value to a set or list container.
|
PApplicationException |
build() |
PApplicationException._Builder |
clear(int key)
Clear the provided field value.
|
PApplicationException._Builder |
clearMessage()
Clear the
message field. |
PApplicationException._Builder |
clearType()
Clear the
type field. |
PExceptionDescriptor<PApplicationException> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
String |
getMessage()
Exception message.
|
PApplicationExceptionType |
getType()
The application exception type.
|
boolean |
has(int key) |
int |
hashCode() |
boolean |
hasMessage()
Checks for presence of the
message field. |
boolean |
hasType()
Checks for presence of the
type field. |
PApplicationException._Builder |
initCause(Throwable cause)
Initializes the cause of the p_service.PApplicationException
|
boolean |
isModified(int key)
Checks if a specific field is modified on the builder.
|
boolean |
isModifiedMessage()
Checks if the
message field has been modified since the
builder was created. |
boolean |
isModifiedType()
Checks if the
type field has been modified since the
builder was created. |
boolean |
isSet(int key)
Checks if a specific field is set on the builder.
|
boolean |
isSetMessage()
Checks for explicit presence of the
message field. |
boolean |
isSetType()
Checks for explicit presence of the
type field. |
PApplicationException._Builder |
merge(PApplicationException from)
Merges the provided message into the builder.
|
PMessageBuilder |
mutator(int key)
Get the builder for the given message contained in this builder.
|
Optional<String> |
optionalMessage()
Exception message.
|
Optional<PApplicationExceptionType> |
optionalType()
The application exception type.
|
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
Read the binary content into the current builder.
|
PApplicationException._Builder |
set(int key,
Object value)
Set the provided field value.
|
PApplicationException._Builder |
setMessage(String value)
Set the
message field value. |
PApplicationException._Builder |
setType(PApplicationExceptionType value)
Set the
type field value. |
boolean |
valid()
Checks if the current set data is enough to make a valid struct.
|
PApplicationException._Builder |
validate()
Checks if the current set data is enough to make a valid struct.
|
addTo, clear, isModified, isSet, modifiedFieldNames, modifiedFields, mutator, presentFieldNames, presentFields, set
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
get, has, toBuilder, toMessage
public _Builder()
public _Builder(PApplicationException base)
base
- The base PApplicationException@Nonnull public PApplicationException._Builder merge(PApplicationException from)
PMessageBuilder
merge
in class PMessageBuilder<PApplicationException>
from
- The message to merge values from.@Nonnull public PApplicationException._Builder setMessage(String value)
message
field value.
Exception message.
value
- The new valuepublic boolean isSetMessage()
message
field.public boolean hasMessage()
message
field.hasMessage
in interface PApplicationException_OrBuilder
public boolean isModifiedMessage()
message
field has been modified since the
builder was created.@Nonnull public PApplicationException._Builder clearMessage()
message
field.public String getMessage()
getMessage
in interface PApplicationException_OrBuilder
message
field value@Nonnull public Optional<String> optionalMessage()
optionalMessage
in interface PApplicationException_OrBuilder
message
field value@Nonnull public PApplicationException._Builder setType(PApplicationExceptionType value)
type
field value.
The application exception type.
value
- The new valuepublic boolean isSetType()
type
field.public boolean hasType()
type
field.hasType
in interface PApplicationException_OrBuilder
public boolean isModifiedType()
type
field has been modified since the
builder was created.@Nonnull public PApplicationException._Builder clearType()
type
field.public PApplicationExceptionType getType()
getType
in interface PApplicationException_OrBuilder
type
field value@Nonnull public Optional<PApplicationExceptionType> optionalType()
optionalType
in interface PApplicationException_OrBuilder
type
field value@Nonnull public PApplicationException._Builder initCause(Throwable cause)
cause
- The causepublic PMessageBuilder mutator(int key)
PMessageBuilder
mutator
in class PMessageBuilder<PApplicationException>
key
- The field key.@Nonnull public PApplicationException._Builder set(int key, Object value)
PMessageBuilder
set
in class PMessageBuilder<PApplicationException>
key
- The key of the field to set.value
- The value to be set.public boolean isSet(int key)
PMessageBuilder
isSet
in class PMessageBuilder<PApplicationException>
key
- The key of the field to check.public boolean isModified(int key)
PMessageBuilder
isModified
in class PMessageBuilder<PApplicationException>
key
- The key of the field to check.public <T> T get(int key)
get
in interface PMessageOrBuilder<PApplicationException>
T
- The return type.key
- The key of the field.public boolean has(int key)
has
in interface PMessageOrBuilder<PApplicationException>
key
- The key of the field.@Nonnull public PApplicationException._Builder addTo(int key, Object value)
PMessageBuilder
addTo
in class PMessageBuilder<PApplicationException>
key
- The key of the container field to add too.value
- The value to add.@Nonnull public PApplicationException._Builder clear(int key)
PMessageBuilder
clear
in class PMessageBuilder<PApplicationException>
key
- The key of the field to clear.public boolean valid()
PMessageBuilder
valid
in class PMessageBuilder<PApplicationException>
public PApplicationException._Builder validate()
PMessageBuilder
IllegalStateException
with an appropriate error
message.validate
in class PMessageBuilder<PApplicationException>
@Nonnull public PExceptionDescriptor<PApplicationException> descriptor()
descriptor
in interface PMessageOrBuilder<PApplicationException>
descriptor
in interface PValue<PApplicationException>
public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader, boolean strict) throws IOException
BinaryReader
BinarySerializer.deserialize(InputStream, PMessageDescriptor)
call.readBinary
in interface BinaryReader
reader
- The reader to read from.strict
- If content should be handled strictly. True means to fail
on everything that Apache thrift failed read() on.IOException
- When unable to read message for any reason.@Nonnull public PApplicationException build()
build
in class PMessageBuilder<PApplicationException>
Copyright © 2015–2020 morimekta.net. All rights reserved.