public class MemoryAccessError extends StaticError implements StaticThrowable<MemoryAccessError>
MemoryArea
. For example, when logic in a
RealtimeThread
or AsyncBaseEventHandler
configured with
a javax.realtime.memory.ScopedConfigurationParameters
object, attempts to refer to an object in a HeapMemory
area.StaticThrowable.Hidden
Constructor and Description |
---|
MemoryAccessError()
A constructor for
MemoryAccessError , but application code should
use get() instead. |
MemoryAccessError(java.lang.String description)
A descriptive constructor for
MemoryAccessError . |
Modifier and Type | Method and Description |
---|---|
static MemoryAccessError |
get()
Gets the preallocated version of this
Throwable . |
MemoryAccessError |
getSingleton()
For the case of legacy code that creates an RTSJ exception
explicity, this provides a means of obtaining its singleton version.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, isStatic, printStackTrace, printStackTrace, printStackTrace, setStackTrace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, init, init, init, init, initCause, isStatic, printStackTrace, printStackTrace, printStackTrace, setStackTrace, writeReplace
public MemoryAccessError()
MemoryAccessError
, but application code should
use get()
instead.public MemoryAccessError(java.lang.String description)
MemoryAccessError
.description
- The reason for throwing this error.public static MemoryAccessError get()
Throwable
. Allocation is
done in memory that acts like ImmortalMemory
. The message and
cause are cleared and the stack trace is filled out.public MemoryAccessError getSingleton()
StaticThrowable
getSingleton
in interface StaticThrowable<MemoryAccessError>
getSingleton
in class StaticError