public class BufferAlignmentException extends RuntimeException
BufferAlignmentAgent when an unaligned memory access is detected.
Package-protected to discourage catching since this as agent should be used only for testing and debugging.
| Constructor and Description |
|---|
BufferAlignmentException(String prefix,
int index,
long addressOffset)
Create exception with details about the unaligned access.
|
| Modifier and Type | Method and Description |
|---|---|
long |
addressOffset()
Returns an address offset into the start of the underlying buffer.
|
int |
index()
Returns an index at which unaligned access occurred.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BufferAlignmentException(String prefix, int index, long addressOffset)
prefix - for the error message.index - at which the unaligned access occurred.addressOffset - pointing to the beginning of the underlying buffer.Copyright © 2014-2022 Real Logic Limited. All Rights Reserved.