Skip to main content

RexxError

Enum RexxError 

Source
pub enum RexxError {
Show 39 variants Halt, ResourceExhausted, UnmatchedComment, ExpectedWhenOtherwise, UnexpectedThenElse, UnexpectedWhenOtherwise, UnexpectedEnd, InvalidCharacter, IncompleteBlock, InvalidHexBinary, LabelNotFound, UnexpectedProcedure, ExpectedThen, ExpectedStringOrSymbol, ExpectedSymbol, InvalidDataOnEnd, InvalidTrace, InvalidSubKeyword, InvalidWholeNumber, InvalidDoSyntax, InvalidLeaveIterate, EnvironmentNameTooLong, NameTooLong, InvalidName, InvalidExpressionResult, InvalidLogicalValue, InvalidExpression, UnmatchedParen, UnexpectedCommaOrParen, InvalidTemplate, IncorrectCall, BadArithmetic, ArithmeticOverflow, RoutineNotFound, NoReturnData, NoReturnValue, InvalidVariableRef, SystemFailure, InterpretationError,
}
Expand description

REXX error numbers per ANSI X3.274-1996 §A. Not all are used initially but the numbering must be correct.

Variants§

§

Halt

4 — Program interrupted (HALT condition)

§

ResourceExhausted

5 — System resources exhausted

§

UnmatchedComment

6 — Unmatched /*

§

ExpectedWhenOtherwise

7 — WHEN or OTHERWISE expected

§

UnexpectedThenElse

8 — Unexpected THEN or ELSE

§

UnexpectedWhenOtherwise

9 — Unexpected WHEN or OTHERWISE

§

UnexpectedEnd

10 — Unexpected or unmatched END

§

InvalidCharacter

13 — Invalid character in program

§

IncompleteBlock

14 — Incomplete DO/SELECT/IF

§

InvalidHexBinary

15 — Invalid hexadecimal or binary string

§

LabelNotFound

16 — Label not found (SIGNAL target)

§

UnexpectedProcedure

17 — Unexpected PROCEDURE

§

ExpectedThen

18 — THEN expected

§

ExpectedStringOrSymbol

19 — String or symbol expected

§

ExpectedSymbol

20 — Symbol expected

§

InvalidDataOnEnd

21 — Invalid data on end of clause

§

InvalidTrace

24 — Invalid TRACE request

§

InvalidSubKeyword

25 — Invalid sub-keyword found

§

InvalidWholeNumber

26 — Invalid whole number

§

InvalidDoSyntax

27 — Invalid DO syntax

§

InvalidLeaveIterate

28 — Invalid LEAVE or ITERATE

§

EnvironmentNameTooLong

29 — Environment name too long

§

NameTooLong

30 — Name or string too long

§

InvalidName

31 — Name starts with number or “.”

§

InvalidExpressionResult

33 — Invalid expression result

§

InvalidLogicalValue

34 — Logical value not 0 or 1

§

InvalidExpression

35 — Invalid expression

§

UnmatchedParen

36 — Unmatched “(” in expression

§

UnexpectedCommaOrParen

37 — Unexpected “,” or “)”

§

InvalidTemplate

38 — Invalid template or pattern

§

IncorrectCall

40 — Incorrect call to routine

§

BadArithmetic

41 — Bad arithmetic conversion

§

ArithmeticOverflow

42 — Arithmetic overflow/underflow

§

RoutineNotFound

43 — Routine not found

§

NoReturnData

44 — Function did not return data

§

NoReturnValue

45 — No data specified on function RETURN

§

InvalidVariableRef

46 — Invalid variable reference

§

SystemFailure

48 — Failure in system service

§

InterpretationError

49 — Interpretation error (INTERPRET issues)

Implementations§

Source§

impl RexxError

Source

pub fn number(self) -> u32

The REXX error number per the ANSI spec.

Source

pub fn message(self) -> &'static str

Standard REXX error message text.

Trait Implementations§

Source§

impl Clone for RexxError

Source§

fn clone(&self) -> RexxError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RexxError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for RexxError

Source§

fn eq(&self, other: &RexxError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for RexxError

Source§

impl Eq for RexxError

Source§

impl StructuralPartialEq for RexxError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V