Enum RunTimeError
- All Implemented Interfaces:
Serializable
,Comparable<RunTimeError>
public enum RunTimeError extends Enum<RunTimeError>
SARK Run time errors.
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORT
Generic user abort.API
API startup failure.DABT
Data abort.DIVBY0
Divide by zero.ENABLE
Bad event enable.EVENT
Event startup failure.FIQ
Unhandled FIQ.IOBUF
Failed to allocate IO buffer.IRQ
Unhandled IRQ.MALLOC
"malloc" failure.NONE
No error.NULL
Generic null pointer error.PABT
Prefetch abort.PKT
Pkt startup failure.RESET
Branch through zero.SARK_VERSION_INCORRECT
SW version conflict.SVC
Undefined SVC or no handler.SWERR
Fatal SW error.TIMER
Timer startup failure.UNDEF
Undefined instruction.VIC
Unconfigured VIC vector. -
Field Summary
Fields Modifier and Type Field Description int
value
The SCAMP RTE code. -
Method Summary
Modifier and Type Method Description static RunTimeError
get(int value)
Parse a SCAMP RTE code.static RunTimeError
valueOf(String name)
Returns the enum constant of this type with the specified name.static RunTimeError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No error. -
RESET
Branch through zero. -
UNDEF
Undefined instruction. -
SVC
Undefined SVC or no handler. -
PABT
Prefetch abort. -
DABT
Data abort. -
IRQ
Unhandled IRQ. -
FIQ
Unhandled FIQ. -
VIC
Unconfigured VIC vector. -
ABORT
Generic user abort. -
MALLOC
"malloc" failure. -
DIVBY0
Divide by zero. -
EVENT
Event startup failure. -
SWERR
Fatal SW error. -
IOBUF
Failed to allocate IO buffer. -
ENABLE
Bad event enable. -
NULL
Generic null pointer error. -
PKT
Pkt startup failure. -
TIMER
Timer startup failure. -
API
API startup failure. -
SARK_VERSION_INCORRECT
SW version conflict.
-
-
Field Details
-
value
public final int valueThe SCAMP RTE code.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
Parse a SCAMP RTE code.- Parameters:
value
- the code to parse.- Returns:
- The enum element.
-