aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-04-14 20:17:54 +0100
committergingerBill <bill@gingerbill.org>2021-04-14 20:17:54 +0100
commitd24784074cd5cb7ac340f975b207e6d80abbd5a6 (patch)
tree1da00aa73cceb1a960387267139a978859023a76
parentcd2476e08497659c33fa456bce4fc1fc0c97a91c (diff)
Add extra error to io.Error
-rw-r--r--core/io/io.odin6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/io/io.odin b/core/io/io.odin
index feda1ce64..d36791450 100644
--- a/core/io/io.odin
+++ b/core/io/io.odin
@@ -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,
+ // 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,
@@ -40,6 +43,9 @@ Error :: enum i32 {
Negative_Count,
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 = -1,
}