|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.cmpware.cmp.MemoryAccessException
public class MemoryAccessException
This class implements the Memory Access Exception. This is thrown whenever an attempt is made to access an illegal memory address.
Copyright (c) 2004 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
protected int |
addr
The address access that caused the exception |
static java.lang.String |
copyright
Copyright string |
protected int |
data
The data of the attempted to be read / write that caused the exception |
protected boolean |
isWrite
Did a read or a write cause the exception? |
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
MemoryAccessException()
The constructor |
|
MemoryAccessException(int addr)
A constructor. |
|
MemoryAccessException(int addr,
int data)
A constructor. |
|
MemoryAccessException(java.lang.String msg)
A constructor. |
|
MemoryAccessException(java.lang.String msg,
int addr)
A constructor. |
|
MemoryAccessException(java.lang.String msg,
int addr,
int data)
A constructor. |
|
| Method Summary | |
|---|---|
int |
getAddress()
This method returns the memory address that caused the exception. |
int |
getData()
This method returns the data that was attempted to be read / written when the exception occurred. |
boolean |
isWrite()
This method returns true if the memory access which caused the exception was a write and a false if it was a read. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
protected int addr
protected int data
protected boolean isWrite
static final long serialVersionUID
| Constructor Detail |
|---|
public MemoryAccessException()
public MemoryAccessException(java.lang.String msg)
msg - The exception message string.
public MemoryAccessException(java.lang.String msg,
int addr)
msg - The exception message string.addr - The address of the memory access which caused
the exception.public MemoryAccessException(int addr)
addr - The address of the memory access which caused
the exception.
public MemoryAccessException(java.lang.String msg,
int addr,
int data)
msg - The exception message string.addr - The address of the memory access which caused
the exception.data - If the access is a write, this parameter
contains the data attempted to be written when the
exception occurred.
public MemoryAccessException(int addr,
int data)
addr - The address of the memory access which caused
the exception.data - If the access is a write, this parameter
contains the data attempted to be written when the
exception occurred.| Method Detail |
|---|
public int getAddress()
public int getData()
public boolean isWrite()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||