class MXC::Error
Raised when MXC cannot start or finish a sandbox.
rescue MXC::Error => e e.code # => :backend_error e.remediation # => "Install bubblewrap"
Attributes
Returns MXC’s error code as a Symbol, such as :backend_unavailable.
Returns the operating system’s own error code, or nil.
Returns the operation that failed, as MXC names it, or nil.
Returns a suggestion for fixing the problem, or nil.
Public Class Methods
# File lib/mxc/error.rb, line 23 def initialize(message = nil, code: nil, remediation: nil, operation: nil, native_code: nil) super(message) @code = code @remediation = remediation @operation = operation @native_code = native_code end
Returns a new Error with message and optional details.
Calls superclass method