System.TRuntimeError

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TRuntimeError = (reNone, reOutOfMemory, reInvalidPtr, reDivByZero,
reRangeError, reIntOverflow, reInvalidOp, reZeroDivide, reOverflow,
reUnderflow, reInvalidCast, reAccessViolation, rePrivInstruction,
reControlBreak, reStackOverflow,
{ reVar* used in Variants.pas }
reVarTypeCast, reVarInvalidOp,
reVarDispatch, reVarArrayCreate, reVarNotArray, reVarArrayBounds,
reAssertionFailed,
reExternalException, { not used here; in SysUtils }

Properties

Type Visibility Source Unit Parent
enum public System.pas System System

Description

Is an enumeration of internal run-time error codes.

The TRuntimeError type is used internally within Delphi when Error is used to generate a run-time exception. It defines the type of run-time error that has occurred.

The values are listed in the following table.



Constant Meaning

reNone

Undefined error.

reOutOfMemory

Out of memory

reInvalidPtr

An attempt was made to use a nil or invalid pointer.

reDivByZero

An attempt was made to divide by zero.

reRangeError

A value out of range was encountered.

reIntOverflow

An integer variable exceeded its capacity.

reInvalidOp

An invalid operation was attempted.

reZeroDivide

An attempt was made to divide by zero.

reOverflow

A floating-point number exceeded its positive capacity.

reUnderflow

A floating-point number exceeded its negative capacity.

reInvalidCast

An invalid typecast operation was attempted.

reAccessViolation

An attempt was made to access an invalid storage address.

rePrivInstruction

An attempt was made to execute a priveleged instruction.

reControlBreak

The user pressed Ctrl-Break to interrupt an operation.

reStackOverflow

The internal stack exceeded its capacity.

reVarTypeCast

An invalid variable type cast operation was attempted.

reVarInvalidOp

An attempt was made to process an invalid variable type.

reVarDispatch

Execution of an inexistent method in a variant was attempted.

reVarArrayCreate

Variant array creation error. An invalid variant array creation was attempted.

reVarNotArray

A variant that is not an array was encountered.

reVarArrayBounds

A variant array out of bounds was encountered.

reAssertionFailed

An assert failed.

reExternalException

An external exception was encountered.

reIntfCastError

Interface typecast was attempted, but it is not possible for the first interface.

reSafeCallError

An exception was raised in a safecall method.

reMonitorNotLocked

An attempt was made to unlock a monitor that was not previously locked.

reNoMonitorSupport

No monitor support encountered.

reQuit

Fatal signal raised on a non-Delphi thread.

reCodesetConversion

An invalid code set conversion was attempted.

rePlatformNotImplemented

The functionality is not implemented on the current platform.

reObjectDisposed

The object that you are trying to access has been disposed.



See Also

Code Examples