public abstract class DrMemoryError extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DrMemoryError.Note |
static class |
DrMemoryError.StackTrace |
| Modifier and Type | Field and Description |
|---|---|
protected int |
duplicates |
protected String |
header |
protected int |
identifier |
protected List<DrMemoryError.Note> |
notes |
static Pattern |
rx_header |
static Pattern |
rx_notes |
static Pattern |
rx_stackTrace |
protected List<DrMemoryError.StackTrace> |
trace |
| Constructor and Description |
|---|
DrMemoryError() |
| Modifier and Type | Method and Description |
|---|---|
void |
getBody(String error) |
int |
getDuplicates()
Returns the number of duplicates of this error
|
String |
getheader()
Returns the header of the error
|
int |
getIdentifier()
Returns the identifier of the error
|
void |
onAddNote(DrMemoryError.Note note)
Listener for on add note
|
void |
onAddStackTrace(DrMemoryError.StackTrace st)
Called just before stack trace is added
|
static DrMemoryError |
parse(String e) |
void |
parseHeader(String header) |
static Class<?> |
resolve(String type) |
void |
setDuplicates(int number)
Sets the number of duplicates
|
protected int identifier
protected String header
protected int duplicates
protected List<DrMemoryError.StackTrace> trace
protected List<DrMemoryError.Note> notes
public static final Pattern rx_stackTrace
public static final Pattern rx_notes
public static final Pattern rx_header
public void parseHeader(String header)
public void getBody(String error)
public void onAddStackTrace(DrMemoryError.StackTrace st)
st - DrMemoryError.StackTracepublic void onAddNote(DrMemoryError.Note note)
note - public int getIdentifier()
public String getheader()
public int getDuplicates()
public void setDuplicates(int number)
number - public static DrMemoryError parse(String e) throws InvalidInputException
InvalidInputExceptionpublic static Class<?> resolve(String type) throws InvalidErrorTypeException
InvalidErrorTypeExceptionCopyright © 2018. All rights reserved.