Enum gdnative::core_types::GodotError
source · pub enum GodotError {
Show 48 variants
Failed,
Unavailable,
Unconfigured,
Unauthorized,
ParameterRange,
OutOfMemory,
FileNotFound,
FileBadDrive,
FileBadPath,
FileNoPermission,
FileAlreadyInUse,
FileCantOpen,
FileCantWrite,
FileCantRead,
FileUnrecognized,
FileCorrupt,
FileMissingDependency,
FileEof,
CantOpen,
CantCreate,
QueryFailed,
AlreadyInUse,
Locked,
TimeOut,
CantConnect,
CantResolve,
ConnectionError,
CantAcquireResource,
CantFork,
InvalidData,
InvalidParameter,
AlreadyExists,
DoesNotExist,
DatabaseCantRead,
DatabaseCantWrite,
CompilationFailed,
MethodNotFound,
LinkFailed,
ScriptFailed,
CyclicLink,
InvalidDeclaration,
DuplicateSymbol,
ParseError,
Busy,
Skip,
Help,
Bug,
PrinterOnFire,
}
Expand description
Error codes used in various Godot APIs.
Variants§
Failed
Unconfigured
ParameterRange
OutOfMemory
FileNotFound
FileBadDrive
FileBadPath
FileNoPermission
FileAlreadyInUse
FileCantOpen
FileCantWrite
FileCantRead
FileUnrecognized
FileCorrupt
FileMissingDependency
FileEof
CantOpen
CantCreate
QueryFailed
AlreadyInUse
Locked
TimeOut
CantConnect
CantResolve
ConnectionError
CantAcquireResource
CantFork
InvalidData
InvalidParameter
AlreadyExists
DoesNotExist
DatabaseCantRead
DatabaseCantWrite
CompilationFailed
MethodNotFound
LinkFailed
ScriptFailed
CyclicLink
InvalidDeclaration
DuplicateSymbol
ParseError
Busy
Skip
Help
Bug
PrinterOnFire
Trait Implementations§
source§impl Clone for GodotError
impl Clone for GodotError
source§fn clone(&self) -> GodotError
fn clone(&self) -> GodotError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GodotError
impl Debug for GodotError
source§impl<'de> Deserialize<'de> for GodotError
impl<'de> Deserialize<'de> for GodotError
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<GodotError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<GodotError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for GodotError
impl Display for GodotError
source§impl Error for GodotError
impl Error for GodotError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl PartialEq<GodotError> for GodotError
impl PartialEq<GodotError> for GodotError
source§fn eq(&self, other: &GodotError) -> bool
fn eq(&self, other: &GodotError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GodotError
impl Serialize for GodotError
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for GodotError
impl Eq for GodotError
impl StructuralEq for GodotError
impl StructuralPartialEq for GodotError
Auto Trait Implementations§
impl RefUnwindSafe for GodotError
impl Send for GodotError
impl Sync for GodotError
impl Unpin for GodotError
impl UnwindSafe for GodotError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.