@Generated(value="com.neeve.adm.AdmJsonGenerator", date="Fri Dec 05 11:53:59 EST 2025") @AdmGenerated(encoding="Json", compatLevel="4.1.0", admVersion="Unknown Version", date="12/5/25 11:53 AM", buildInfo="nvx-eagle-2.9-SNAPSHOT Json Encoding") @AdmFactoryInfo(factoryClass=MessageFactory.class, vfid=132, ofid=132, typeId=1001) public final class ErrorContext extends Object implements IErrorContext
| ADM Type | Embedded Entity |
| Factory | MessageFactory |
| ADM Field Summary |
|---|
| Field | Type | Id | Description |
|---|---|---|---|
| code | ErrorCode | 32736 | No doc provided. |
| description | String | 32735 | No doc provided. |
| extInfo | String | 32734 | No doc provided. |
| type | ErrorType | 32737 | No doc provided. |
| Modifier and Type | Field and Description |
|---|---|
static ErrorContext[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type.
|
| Constructor and Description |
|---|
ErrorContext() |
| Modifier and Type | Method and Description |
|---|---|
ErrorContext |
acquire() |
void |
clearCode()
Clears the value of 'code'.
|
void |
clearContent() |
void |
clearDescription()
Clears the value of 'description'.
|
void |
clearExtInfo()
Clears the value of 'extInfo'.
|
void |
clearType()
Clears the value of 'type'.
|
Object |
clone()
Creates a clone of this object.
|
ErrorContext |
copy() |
void |
copyInto(ErrorContext copy) |
static ErrorContext |
create() |
static ErrorContext |
createFrom(byte[] serializedJson) |
static ErrorContext |
createFromJson(String json) |
static ErrorContext |
createFromSerializedJson(byte[] serializedJson) |
static ErrorContext |
createFromSerializedJson(ByteBuffer serializedJson) |
ErrorContext |
deserializeFromByteArray(byte[] array) |
ErrorContext |
deserializeFromByteBuffer(ByteBuffer buffer) |
ErrorContext |
deserializeFromNative(long address,
int addressOffset,
int length) |
void |
dispose() |
ErrorCode |
getCode()
Gets the value of 'code'.
|
static int |
getCodeFieldId() |
String |
getDescription()
Gets the value of 'description'.
|
static int |
getDescriptionFieldId() |
<T extends XString> |
getDescriptionTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getDescriptionTo(XString val)
Copies the value of 'description' into the provided XString.
|
XString |
getDescriptionUnsafe()
Gets the raw value of 'description'.
|
String |
getExtInfo()
Gets the value of 'extInfo'.
|
static int |
getExtInfoFieldId() |
<T extends XString> |
getExtInfoTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getExtInfoTo(XString val)
Copies the value of 'extInfo' into the provided XString.
|
XString |
getExtInfoUnsafe()
Gets the raw value of 'extInfo'.
|
boolean |
getIsReadOnly() |
int |
getOwnerCount() |
int |
getSerializeToNativeLength() |
ErrorType |
getType()
Gets the value of 'type'.
|
static int |
getTypeFieldId() |
void |
getValidationErrors(List<XString> results,
String errorPrefix) |
boolean |
hasCode()
Checks for the presence of 'code'.
|
boolean |
hasDescription()
Checks for the presence of 'description'.
|
boolean |
hasExtInfo()
Checks for the presence of 'extInfo'.
|
boolean |
hasType()
Checks for the presence of 'type'.
|
boolean |
isBufferBacked() |
boolean |
isReferenceCounted() |
boolean |
isValid() |
void |
lendDescription(XString val)
Lends the value of 'description' to this object.
|
void |
lendExtInfo(XString val)
Lends the value of 'extInfo' to this object.
|
byte[] |
serializeToByteArray() |
ByteBuffer |
serializeToByteBuffer() |
int |
serializeToNative(long address,
int addressOffset) |
void |
setAsReadOnly() |
void |
setCode(ErrorCode val)
Sets the value of 'code'.
|
void |
setDescription(String val)
Sets the value of 'description'.
|
void |
setDescriptionFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setDescriptionFrom(XString val)
Copies the provided XString value into this object's 'description'.
|
void |
setExtInfo(String val)
Sets the value of 'extInfo'.
|
void |
setExtInfoFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setExtInfoFrom(XString val)
Copies the provided XString value into this object's 'extInfo'.
|
void |
setType(ErrorType val)
Sets the value of 'type'.
|
String |
toString() |
public static final ErrorContext[] EMPTY_ARRAY
public static ErrorContext create()
public static ErrorContext createFromJson(String json)
public static ErrorContext createFromSerializedJson(ByteBuffer serializedJson)
public static ErrorContext createFromSerializedJson(byte[] serializedJson)
public static ErrorContext createFrom(byte[] serializedJson)
public final void clearContent()
public final void setAsReadOnly()
public final boolean getIsReadOnly()
public static final int getTypeFieldId()
public final void setType(ErrorType val)
IErrorContextsetType in interface IErrorContextval - The value to set.public final ErrorType getType()
IErrorContextgetType in interface IErrorContextpublic final void clearType()
IErrorContextclearType in interface IErrorContextIErrorContext.setType(ErrorType)public final boolean hasType()
IErrorContexthasType in interface IErrorContextIErrorContext.getType()public static final int getCodeFieldId()
public final void setCode(ErrorCode val)
IErrorContextsetCode in interface IErrorContextval - The value to set.public final ErrorCode getCode()
IErrorContextgetCode in interface IErrorContextpublic final void clearCode()
IErrorContextclearCode in interface IErrorContextIErrorContext.setCode(ErrorCode)public final boolean hasCode()
IErrorContexthasCode in interface IErrorContextIErrorContext.getCode()public static final int getDescriptionFieldId()
public final void setDescription(String val)
IErrorContextsetDescription in interface IErrorContextval - The value to set.public final String getDescription()
IErrorContextgetDescription in interface IErrorContextpublic final void lendDescription(XString val)
IErrorContextThis method is equivalent to setDescription except that it allows this object to defer copying the value until this object is next serialized. This means that the caller must not modify or dispose the value being passed in to this method.
Note, also, that unlike lendXXX methods for embedded entities, this method does not attempt to acquire or dispose of the value passed in even if the value is poolable.
lendDescription in interface IErrorContextval - The value to set.public final void setDescriptionFrom(long val)
IErrorContext
NOTE:
This is the same as calling IErrorContext.setDescription(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setDescriptionFrom in interface IErrorContextpublic final <T extends XString> T getDescriptionTo(XString.Factory<T> factory)
IErrorContext
If the value of this field is not null this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getDescriptionTo in interface IErrorContextfactory - The factory from which to get the XString to copy into and returnnull.public final void setDescriptionFrom(XString val)
IErrorContext
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than IErrorContext.setDescription(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setDescriptionFrom in interface IErrorContextpublic final void getDescriptionTo(XString val)
IErrorContext
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than IErrorContext.getDescription() bec
because it can avoid decoding the value into an String.
getDescriptionTo in interface IErrorContextIErrorContext.getDescription()public final XString getDescriptionUnsafe()
IErrorContext
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getDescriptionUnsafe in interface IErrorContextIErrorContext.getDescription()public final void clearDescription()
IErrorContextclearDescription in interface IErrorContextIErrorContext.setDescription(String)public final boolean hasDescription()
IErrorContexthasDescription in interface IErrorContextIErrorContext.getDescription()public static final int getExtInfoFieldId()
public final void setExtInfo(String val)
IErrorContextsetExtInfo in interface IErrorContextval - The value to set.public final String getExtInfo()
IErrorContextgetExtInfo in interface IErrorContextpublic final void lendExtInfo(XString val)
IErrorContextThis method is equivalent to setExtInfo except that it allows this object to defer copying the value until this object is next serialized. This means that the caller must not modify or dispose the value being passed in to this method.
Note, also, that unlike lendXXX methods for embedded entities, this method does not attempt to acquire or dispose of the value passed in even if the value is poolable.
lendExtInfo in interface IErrorContextval - The value to set.public final void setExtInfoFrom(long val)
IErrorContext
NOTE:
This is the same as calling IErrorContext.setExtInfo(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setExtInfoFrom in interface IErrorContextpublic final <T extends XString> T getExtInfoTo(XString.Factory<T> factory)
IErrorContext
If the value of this field is not null this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getExtInfoTo in interface IErrorContextfactory - The factory from which to get the XString to copy into and returnnull.public final void setExtInfoFrom(XString val)
IErrorContext
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than IErrorContext.setExtInfo(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setExtInfoFrom in interface IErrorContextpublic final void getExtInfoTo(XString val)
IErrorContext
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than IErrorContext.getExtInfo() bec
because it can avoid decoding the value into an String.
getExtInfoTo in interface IErrorContextIErrorContext.getExtInfo()public final XString getExtInfoUnsafe()
IErrorContext
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getExtInfoUnsafe in interface IErrorContextIErrorContext.getExtInfo()public final void clearExtInfo()
IErrorContextclearExtInfo in interface IErrorContextIErrorContext.setExtInfo(String)public final boolean hasExtInfo()
IErrorContexthasExtInfo in interface IErrorContextIErrorContext.getExtInfo()public final byte[] serializeToByteArray()
public final ByteBuffer serializeToByteBuffer()
public final boolean isBufferBacked()
public final int getSerializeToNativeLength()
public final int serializeToNative(long address,
int addressOffset)
public final ErrorContext deserializeFromByteArray(byte[] array)
public final ErrorContext deserializeFromByteBuffer(ByteBuffer buffer)
public final ErrorContext deserializeFromNative(long address, int addressOffset, int length)
public final boolean isReferenceCounted()
public final ErrorContext acquire()
public final int getOwnerCount()
public final void dispose()
public final Object clone()
This method differs from the copy() method in that:
public final ErrorContext copy()
public final void copyInto(ErrorContext copy)
public final boolean isValid()
isValid in interface IRogValidatablepublic final void getValidationErrors(List<XString> results, String errorPrefix)
getValidationErrors in interface IRogValidatableCopyright © 2016 Neeve Research, LLC. All Rights Reserved.