File.error

Throw a potentially reusable IOException, with the provided message, function name and error code.

  1. void error(int error_code, istring func_name, istring msg, istring file, long line)
    class File
    override
    void
    error
    (,,
    istring msg = ""
    ,
    istring file = __FILE__
    ,
    long line = __LINE__
    )
  2. alias error = Conduit.error
  3. alias error = Device.error

Parameters

func_name istring

name of the method that failed

msg istring

message description of the error (uses stderr if empty)

file istring

file where exception is thrown

line long

line where exception is thrown

Meta