Imitate the structure of IOErrorType in Haskell: https://hackage.haskell.org/package/base-4.12.0.0/docs/System-IO-Error.html#t:IOErrorType
- alreadyExists: Option String → UInt32 → String → IO.Error
- otherError: UInt32 → String → IO.Error
- resourceBusy: UInt32 → String → IO.Error
- resourceVanished: UInt32 → String → IO.Error
- unsupportedOperation: UInt32 → String → IO.Error
- hardwareFault: UInt32 → String → IO.Error
- unsatisfiedConstraints: UInt32 → String → IO.Error
- illegalOperation: UInt32 → String → IO.Error
- protocolError: UInt32 → String → IO.Error
- timeExpired: UInt32 → String → IO.Error
- interrupted: String → UInt32 → String → IO.Error
- noFileOrDirectory: String → UInt32 → String → IO.Error
- invalidArgument: Option String → UInt32 → String → IO.Error
- permissionDenied: Option String → UInt32 → String → IO.Error
- resourceExhausted: Option String → UInt32 → String → IO.Error
- inappropriateType: Option String → UInt32 → String → IO.Error
- noSuchThing: Option String → UInt32 → String → IO.Error
- unexpectedEof: IO.Error
- userError: String → IO.Error
Instances For
Equations
- IO.instInhabitedError = { default := IO.Error.alreadyExists default default default }
@[export lean_mk_io_user_error]
Equations
Instances For
Equations
- instCoeStringError = { coe := IO.userError }
@[export lean_mk_io_error_already_exists_file]
Equations
Instances For
@[export lean_mk_io_error_eof]
Equations
Instances For
@[export lean_mk_io_error_inappropriate_type_file]
Equations
Instances For
@[export lean_mk_io_error_interrupted]
Equations
Instances For
@[export lean_mk_io_error_invalid_argument_file]
Equations
Instances For
@[export lean_mk_io_error_no_file_or_directory]
Instances For
@[export lean_mk_io_error_no_such_thing_file]
Equations
Instances For
@[export lean_mk_io_error_permission_denied_file]
Equations
Instances For
@[export lean_mk_io_error_resource_exhausted_file]
Equations
Instances For
@[export lean_mk_io_error_unsupported_operation]
Instances For
@[export lean_mk_io_error_resource_exhausted]
Equations
Instances For
@[export lean_mk_io_error_already_exists]
Equations
Instances For
@[export lean_mk_io_error_inappropriate_type]
Equations
Instances For
@[export lean_mk_io_error_no_such_thing]
Equations
Instances For
@[export lean_mk_io_error_resource_vanished]
Instances For
@[export lean_mk_io_error_resource_busy]
Instances For
@[export lean_mk_io_error_invalid_argument]
Equations
Instances For
@[export lean_mk_io_error_other_error]
Equations
Instances For
@[export lean_mk_io_error_permission_denied]
Equations
Instances For
@[export lean_mk_io_error_hardware_fault]
Instances For
@[export lean_mk_io_error_unsatisfied_constraints]
Instances For
@[export lean_mk_io_error_illegal_operation]
Instances For
@[export lean_mk_io_error_protocol_error]
Instances For
@[export lean_mk_io_error_time_expired]
Equations
Instances For
Equations
- IO.Error.fopenErrorToString gist fn code (some details) = IO.Error.downCaseFirst gist ++ " (error code: " ++ toString code ++ ", " ++ IO.Error.downCaseFirst details ++ ")\n file: " ++ fn
- IO.Error.fopenErrorToString gist fn code none = IO.Error.downCaseFirst gist ++ " (error code: " ++ toString code ++ ")\n file: " ++ fn
Instances For
Equations
- IO.Error.otherErrorToString gist code (some details) = IO.Error.downCaseFirst gist ++ " (error code: " ++ toString code ++ ", " ++ IO.Error.downCaseFirst details ++ ")"
- IO.Error.otherErrorToString gist code none = IO.Error.downCaseFirst gist ++ " (error code: " ++ toString code ++ ")"
Instances For
@[export lean_io_error_to_string]
Equations
- IO.Error.unexpectedEof.toString = "end of file"
- (IO.Error.inappropriateType (some fn) code details).toString = IO.Error.fopenErrorToString "inappropriate type" fn code (some details)
- (IO.Error.inappropriateType none code details).toString = IO.Error.otherErrorToString "inappropriate type" code (some details)
- (IO.Error.interrupted fn code details).toString = IO.Error.fopenErrorToString "interrupted system call" fn code (some details)
- (IO.Error.invalidArgument (some fn) code details).toString = IO.Error.fopenErrorToString "invalid argument" fn code (some details)
- (IO.Error.invalidArgument none code details).toString = IO.Error.otherErrorToString "invalid argument" code (some details)
- (IO.Error.noFileOrDirectory fn code details).toString = IO.Error.fopenErrorToString "no such file or directory" fn code none
- (IO.Error.noSuchThing (some fn) code details).toString = IO.Error.fopenErrorToString "no such thing" fn code (some details)
- (IO.Error.noSuchThing none code details).toString = IO.Error.otherErrorToString "no such thing" code (some details)
- (IO.Error.permissionDenied (some fn) code details).toString = IO.Error.fopenErrorToString details fn code none
- (IO.Error.permissionDenied none code details).toString = IO.Error.otherErrorToString details code none
- (IO.Error.resourceExhausted (some fn) code details).toString = IO.Error.fopenErrorToString "resource exhausted" fn code (some details)
- (IO.Error.resourceExhausted none code details).toString = IO.Error.otherErrorToString "resource exhausted" code (some details)
- (IO.Error.alreadyExists none code details).toString = IO.Error.otherErrorToString "already exists" code (some details)
- (IO.Error.alreadyExists (some fn) code details).toString = IO.Error.fopenErrorToString "already exists" fn code (some details)
- (IO.Error.otherError code details).toString = IO.Error.otherErrorToString details code none
- (IO.Error.resourceBusy code details).toString = IO.Error.otherErrorToString "resource busy" code (some details)
- (IO.Error.resourceVanished code details).toString = IO.Error.otherErrorToString "resource vanished" code (some details)
- (IO.Error.hardwareFault code details).toString = IO.Error.otherErrorToString "hardware fault" code none
- (IO.Error.illegalOperation code details).toString = IO.Error.otherErrorToString "illegal operation" code (some details)
- (IO.Error.protocolError code details).toString = IO.Error.otherErrorToString "protocol error" code (some details)
- (IO.Error.timeExpired code details).toString = IO.Error.otherErrorToString "time expired" code (some details)
- (IO.Error.unsatisfiedConstraints code details).toString = IO.Error.otherErrorToString "directory not empty" code none
- (IO.Error.unsupportedOperation code details).toString = IO.Error.otherErrorToString "unsupported operation" code (some details)
- (IO.Error.userError msg).toString = msg
Instances For
Equations
- IO.Error.instToString = { toString := IO.Error.toString }