W3cubDocs

/Crystal

module SystemError::ClassMethods

Defined in:

system_error.cr

Instance Method Summary

Instance Method Detail

def from_errno(message : String? = nil, errno : Errno = Errno.value, **opts)Source

Builds an instance of the exception from a Errno

By default it takes the current errno value. The message is appended with the system message corresponding to the errno. Additional keyword arguments can be passed and they will be forwarded to the exception initializer

© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/SystemError/ClassMethods.html