File.error

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

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

Parameters

func_name string

name of the method that failed

msg string

message description of the error (uses stderr if empty)

file string

file where exception is thrown

line long

line where exception is thrown

Meta