Enum julia::api::exception::Exception
[−]
[src]
pub enum Exception { Argument(Value), Bounds(Value), Composite(Value), Divide(Value), Domain(Value), EOF(Value), Error(Value), Inexact(Value), Init(Value), Interrupt(Value), InvalidState(Value), Key(Value), Load(Value), OutOfMemory(Value), ReadOnlyMemory(Value), Remote(Value), Method(Value), Overflow(Value), Parse(Value), System(Value), Type(Value), UndefRef(Value), UndefVar(Value), Unicode(Value), Unknown(Value), }
Enum containing different Julia exceptions wrapped as a Value.
Variants
Argument(Value)
The parameters to a function call do not match a valid signature
Bounds(Value)
Attempt to access index out-of-bounds
Composite(Value)
Composite exception
Divide(Value)
Divide by zero
Domain(Value)
The argument is outside of the valid domain
EOF(Value)
No more data is available from file or stream
Error(Value)
Generic error occurred
Inexact(Value)
Type conversion cannot be done exactly
Init(Value)
An error occurred when running a module's init
Interrupt(Value)
The process was stopped by a terminal interrupt (C)
InvalidState(Value)
The program reached an invalid exception
Key(Value)
Key doesn't exist in Associative- or Set-like object
Load(Value)
An error occurred while include-ing, require-ing or using a file
OutOfMemory(Value)
Operation allocated too much memory
ReadOnlyMemory(Value)
Operation tried to write to read-only memory
Remote(Value)
Remote exception occurred
Method(Value)
Method with the required type signature doesn't exist
Overflow(Value)
The result of an expression is too large
Parse(Value)
The expression couldn't be parsed as a valid Julia expression
System(Value)
System call failed
Type(Value)
Type assertion failed
UndefRef(Value)
The item or field is not defined
UndefVar(Value)
Symbol is not defined in current scope
Unicode(Value)
Byte array does not represent a valid unicode string
Unknown(Value)
Unknown exception
Methods
impl Exception
[src]
fn occurred() -> bool
[src]
Check if an exception occurred without checking its value.
fn catch() -> Option<Exception>
[src]
Catch an exception if it occurred. Returns None if no exception occurred.
fn with_value(value: Value) -> Result<Exception>
[src]
Construct a new Exception with a wrapped Julia value.
fn inner_ref(&self) -> &Value
[src]
Immutably borrows the inner value.
fn inner_mut(&mut self) -> &mut Value
[src]
Mutably borrows the inner value.
fn into_inner(self) -> Value
[src]
Consumes self and returns the inner value.
Methods from Deref<Target = Value>
fn map<T, F>(&self, f: F) -> Result<T> where
F: FnOnce(*mut jl_value_t) -> T,
[src]
F: FnOnce(*mut jl_value_t) -> T,
Applies function to the inner pointer.
fn map_or<T, F>(&self, f: F, optb: T) -> T where
F: FnOnce(*mut jl_value_t) -> T,
[src]
F: FnOnce(*mut jl_value_t) -> T,
Applies function to the inner pointer and returns a default value if its poisoned.
fn map_or_else<T, F, O>(&self, f: F, op: O) -> T where
F: FnOnce(*mut jl_value_t) -> T,
O: FnOnce(Error) -> T,
[src]
F: FnOnce(*mut jl_value_t) -> T,
O: FnOnce(Error) -> T,
Applies function to the inner pointer and executes a default function if its poisoned.
fn is_ok(&self) -> bool
[src]
Checks if the inner Mutex is poisoned.
fn isa(&self, other: &Datatype) -> Result<bool>
[src]
Checks if the Value is of a concrete Datatype.
fn types_equal(&self, other: &Value) -> Result<bool>
[src]
Checks if the types of two Values are equal.
fn is_nothing(&self) -> bool
[src]
Checks if the value is a nothing.
fn is_tuple(&self) -> bool
[src]
Checks if the value is a tuple.
fn is_svec(&self) -> bool
[src]
Checks if the value is a svec.
fn is_simplevector(&self) -> bool
[src]
Checks if the value is a simplevector.
fn is_datatype(&self) -> bool
[src]
Checks if the value is a datatype.
fn is_mutable(&self) -> bool
[src]
Checks if the value is a mutable.
fn is_mutable_datatype(&self) -> bool
[src]
Checks if the value is a mutable_datatype.
fn is_immutable(&self) -> bool
[src]
Checks if the value is a immutable.
fn is_immutable_datatype(&self) -> bool
[src]
Checks if the value is a immutable_datatype.
fn is_uniontype(&self) -> bool
[src]
Checks if the value is a uniontype.
fn is_typevar(&self) -> bool
[src]
Checks if the value is a typevar.
fn is_unionall(&self) -> bool
[src]
Checks if the value is a unionall.
fn is_typename(&self) -> bool
[src]
Checks if the value is a typename.
fn is_int8(&self) -> bool
[src]
Checks if the value is a int8.
fn is_int16(&self) -> bool
[src]
Checks if the value is a int16.
fn is_int32(&self) -> bool
[src]
Checks if the value is a int32.
fn is_int64(&self) -> bool
[src]
Checks if the value is a int64.
fn is_long(&self) -> bool
[src]
Checks if the value is a long.
fn is_uint8(&self) -> bool
[src]
Checks if the value is a uint8.
fn is_uint16(&self) -> bool
[src]
Checks if the value is a uint16.
fn is_uint32(&self) -> bool
[src]
Checks if the value is a uint32.
fn is_uint64(&self) -> bool
[src]
Checks if the value is a uint64.
fn is_ulong(&self) -> bool
[src]
Checks if the value is a ulong.
fn is_float16(&self) -> bool
[src]
Checks if the value is a float16.
fn is_float32(&self) -> bool
[src]
Checks if the value is a float32.
fn is_float64(&self) -> bool
[src]
Checks if the value is a float64.
fn is_bool(&self) -> bool
[src]
Checks if the value is a bool.
fn is_symbol(&self) -> bool
[src]
Checks if the value is a symbol.
fn is_ssavalue(&self) -> bool
[src]
Checks if the value is a ssavalue.
fn is_slot(&self) -> bool
[src]
Checks if the value is a slot.
fn is_expr(&self) -> bool
[src]
Checks if the value is a expr.
fn is_globalref(&self) -> bool
[src]
Checks if the value is a globalref.
fn is_labelnode(&self) -> bool
[src]
Checks if the value is a labelnode.
fn is_gotonode(&self) -> bool
[src]
Checks if the value is a gotonode.
fn is_quotenode(&self) -> bool
[src]
Checks if the value is a quotenode.
fn is_newvarnode(&self) -> bool
[src]
Checks if the value is a newvarnode.
fn is_linenode(&self) -> bool
[src]
Checks if the value is a linenode.
fn is_method_instance(&self) -> bool
[src]
Checks if the value is a method_instance.
fn is_code_info(&self) -> bool
[src]
Checks if the value is a code_info.
fn is_method(&self) -> bool
[src]
Checks if the value is a method.
fn is_module(&self) -> bool
[src]
Checks if the value is a module.
fn is_mtable(&self) -> bool
[src]
Checks if the value is a mtable.
fn is_task(&self) -> bool
[src]
Checks if the value is a task.
fn is_string(&self) -> bool
[src]
Checks if the value is a string.
fn is_cpointer(&self) -> bool
[src]
Checks if the value is a cpointer.
fn is_pointer(&self) -> bool
[src]
Checks if the value is a pointer.
fn is_intrinsic(&self) -> bool
[src]
Checks if the value is a intrinsic.
fn is_kind(&self) -> bool
[src]
Checks if the value is a kind.
fn is_type(&self) -> bool
[src]
Checks if the value is a type.
fn is_primitivetype(&self) -> bool
[src]
Checks if the value is a primitivetype.
fn is_structtype(&self) -> bool
[src]
Checks if the value is a structtype.
fn is_bits(&self) -> bool
[src]
Checks if the value is a bits.
fn is_abstracttype(&self) -> bool
[src]
Checks if the value is a abstracttype.
fn is_array_type(&self) -> bool
[src]
Checks if the value is a array_type.
fn is_array(&self) -> bool
[src]
Checks if the value is a array.
fn is_cpointer_type(&self) -> bool
[src]
Checks if the value is a cpointer_type.
fn is_abstract_ref_type(&self) -> bool
[src]
Checks if the value is a abstract_ref_type.
fn is_tuple_type(&self) -> bool
[src]
Checks if the value is a tuple_type.
fn is_vecelement_type(&self) -> bool
[src]
Checks if the value is a vecelement_type.
fn is_type_type(&self) -> bool
[src]
Checks if the value is a type_type.
fn is_vararg_type(&self) -> bool
[src]
Checks if the value is a vararg_type.
Trait Implementations
impl Clone for Exception
[src]
fn clone(&self) -> Exception
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for Exception
[src]
type Target = Value
The resulting type after dereferencing.
fn deref(&self) -> &Value
[src]
Dereferences the value.
impl DerefMut for Exception
[src]
impl Debug for Exception
[src]
impl Display for Exception
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more