Sha256: ebb1cf3409889097f15142db72a74411170a6c7d2cd27a7c0c88acc1c7332026

Contents?: true

Size: 1020 Bytes

Versions: 4

Compression:

Stored size: 1020 Bytes

Contents

class BCDD::Result
  class Error < StandardError
    def self.build: (**untyped) -> BCDD::Result::Error

    class NotImplemented < BCDD::Result::Error
    end

    class MissingTypeArgument < BCDD::Result::Error
    end

    class UnexpectedOutcome < BCDD::Result::Error
      def self.build: (outcome: untyped, origin: Symbol, ?expected: String)
          -> BCDD::Result::Error::UnexpectedOutcome
    end

    class InvalidResultSource < BCDD::Result::Error
      def self.build: (given_result: BCDD::Result, expected_source: untyped)
          -> BCDD::Result::Error::InvalidResultSource
    end

    class InvalidSourceMethodArity < BCDD::Result::Error
      def self.build: (source: untyped, method: Method, max_arity: Integer)
        -> BCDD::Result::Error::InvalidSourceMethodArity
    end

    class UnhandledTypes < BCDD::Result::Error
      def self.build: (types: Set[Symbol])
        -> BCDD::Result::Error::UnhandledTypes
    end

    class CallableAndThenDisabled < BCDD::Result::Error
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bcdd-result-1.1.0 sig/bcdd/result/error.rbs
bcdd-result-1.0.0 sig/bcdd/result/error.rbs
bcdd-result-0.13.0 sig/bcdd/result/error.rbs
bcdd-result-0.12.0 sig/bcdd/result/error.rbs