mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
30 lines
374 B
Odin
30 lines
374 B
Odin
package flags
|
|
|
|
import "base:runtime"
|
|
|
|
Parse_Error_Type :: enum {
|
|
None,
|
|
Extra_Pos,
|
|
Bad_Type,
|
|
Missing_Field,
|
|
Missing_Value,
|
|
}
|
|
|
|
Parse_Error :: struct {
|
|
type: Parse_Error_Type,
|
|
message: string,
|
|
}
|
|
|
|
Validation_Error :: struct {
|
|
message: string,
|
|
}
|
|
|
|
Help_Request :: distinct bool
|
|
|
|
Error :: union {
|
|
runtime.Allocator_Error,
|
|
Parse_Error,
|
|
Validation_Error,
|
|
Help_Request,
|
|
}
|