mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
Add extra error to io.Error
This commit is contained in:
@@ -23,6 +23,9 @@ Error :: enum i32 {
|
|||||||
// Short_Write means that a write accepted fewer bytes than requested but failed to return an explicit error
|
// Short_Write means that a write accepted fewer bytes than requested but failed to return an explicit error
|
||||||
Short_Write,
|
Short_Write,
|
||||||
|
|
||||||
|
// Invalid_Write means that a write returned an impossible count
|
||||||
|
Invalid_Write,
|
||||||
|
|
||||||
// Short_Buffer means that a read required a longer buffer than was provided
|
// Short_Buffer means that a read required a longer buffer than was provided
|
||||||
Short_Buffer,
|
Short_Buffer,
|
||||||
|
|
||||||
@@ -40,6 +43,9 @@ Error :: enum i32 {
|
|||||||
Negative_Count,
|
Negative_Count,
|
||||||
Buffer_Full,
|
Buffer_Full,
|
||||||
|
|
||||||
|
// Unknown means that an error has occurred but cannot be categorized
|
||||||
|
Unknown,
|
||||||
|
|
||||||
// Empty is returned when a procedure has not been implemented for an io.Stream
|
// Empty is returned when a procedure has not been implemented for an io.Stream
|
||||||
Empty = -1,
|
Empty = -1,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user