pub enum RefpropError {
Refprop {
code: i32,
message: String,
},
Warning {
code: i32,
message: String,
},
LibraryNotFound(String),
FluidNotFound(String),
InvalidInput(String),
CalculationFailed(String),
}Variants§
Refprop
Error returned by a REFPROP routine (ierr > 0).
Warning
Warning returned by a REFPROP routine (ierr < 0). The result may still be usable.
LibraryNotFound(String)
The REFPROP DLL/so could not be loaded.
FluidNotFound(String)
A fluid .FLD file was not found in the fluids directory.
InvalidInput(String)
Invalid or out-of-range input.
CalculationFailed(String)
Catch-all for calculation failures.
Trait Implementations§
Source§impl Debug for RefpropError
impl Debug for RefpropError
Source§impl Display for RefpropError
impl Display for RefpropError
Source§impl Error for RefpropError
impl Error for RefpropError
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()
Auto Trait Implementations§
impl Freeze for RefpropError
impl RefUnwindSafe for RefpropError
impl Send for RefpropError
impl Sync for RefpropError
impl Unpin for RefpropError
impl UnsafeUnpin for RefpropError
impl UnwindSafe for RefpropError
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