Sha256: e23c09b6fc6724b9a177db9073bbe53669dca11964dd05babca210bc70c8a285

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

class StandardError {
  ruby_alias: 'message
  ruby_alias: 'backtrace

  def initialize {
    "Creates a new Exception with an empty message."

    initialize()
  }

  def initialize: msg {
    """
    @msg Message (@String@) for the Exception.

    Creates a new Exception with a given message.
    """

    initialize(msg)
  }

  def raise! {
    """
    Raises (throws) an Exception to be caught somewhere up the
    callstack.
    """

    raise(self)
  }
}

StdError = StandardError

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fancy-0.3.3 lib/rbx/exception.fy