pub struct Abend {
pub code: AbendCode,
pub message: String,
pub pos: Pos,
pub file: Option<String>,
}Fields§
§code: AbendCode§message: String§pos: Pos§file: Option<String>The source the abend is in, named by the innermost program or method it left: a library file by path, otherwise from its source table, where the first program’s source is empty. None for an abend in the first program.
Implementations§
Source§impl Abend
impl Abend
Sourcepub fn check(c: ProgramCheck, pos: Pos) -> Abend
pub fn check(c: ProgramCheck, pos: Pos) -> Abend
A program check, with Language Environment’s message for it (assumption C455).
pub fn ironwork(message: impl Into<String>, pos: Pos) -> Abend
Sourcepub fn zero_power(pos: Pos) -> Abend
pub fn zero_power(pos: Pos) -> Abend
Zero raised to a negative power: IGZ0050S, a severity-3 condition that ends the run U4038, which ON SIZE ERROR takes as a size error (assumption C334).
Sourcepub fn size_error(&self) -> bool
pub fn size_error(&self) -> bool
Whether an arithmetic statement with ON SIZE ERROR takes this abend as a size error.
Trait Implementations§
impl Eq for Abend
impl StructuralPartialEq for Abend
Auto Trait Implementations§
impl Freeze for Abend
impl RefUnwindSafe for Abend
impl Send for Abend
impl Sync for Abend
impl Unpin for Abend
impl UnsafeUnpin for Abend
impl UnwindSafe for Abend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more