#[non_exhaustive]pub enum PsError {
Show 30 variants
VMError,
DictFull,
DictStackOverflow,
DictStackUnderflow,
ExecStackOverflow,
InvalidAccess,
InvalidExit,
InvalidFileAccess,
InvalidFont,
InvalidRestore,
IOError,
LimitCheck,
NoCurrentPoint,
RangeCheck,
StackOverflow,
StackUnderflow,
SyntaxError,
Timeout,
TypeCheck,
Undefined,
UndefinedFilename,
UndefinedResource,
UndefinedResult,
UnmatchedMark,
Unregistered,
Unsupported,
ConfigurationError,
Quit,
Stop,
Exit,
}Expand description
PostScript error codes and internal control flow signals.
Marked #[non_exhaustive] so future PLRM-derived error variants
(or new internal control-flow signals) can land additively;
embedders that pattern-match for friendly error reporting must
include a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
VMError
DictFull
DictStackOverflow
DictStackUnderflow
ExecStackOverflow
InvalidAccess
InvalidExit
InvalidFileAccess
InvalidFont
InvalidRestore
IOError
LimitCheck
NoCurrentPoint
RangeCheck
StackOverflow
StackUnderflow
SyntaxError
Timeout
TypeCheck
Undefined
UndefinedFilename
UndefinedResource
UndefinedResult
UnmatchedMark
Unregistered
Unsupported
ConfigurationError
Quit
Stop
Exit
Trait Implementations§
Source§impl Error for PsError
impl Error for PsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl Eq for PsError
impl StructuralPartialEq for PsError
Auto Trait Implementations§
impl Freeze for PsError
impl RefUnwindSafe for PsError
impl Send for PsError
impl Sync for PsError
impl Unpin for PsError
impl UnsafeUnpin for PsError
impl UnwindSafe for PsError
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