Sha256: 9dd5f3cf9d65237e102294335481dc64c5fc13fa9ca0bccee3a8336921df4eb4

Contents?: true

Size: 600 Bytes

Versions: 6

Compression:

Stored size: 600 Bytes

Contents

module Pione
  module Front
    # `Front::Error` is a base exception class.
    class Error < StandardError; end

    # FrontError is raised when front server cannnot start.
    class FrontServerError < Error
      def initialize(front, exception)
        @front = front
        @exception = exception
      end

      def message
        "You couldn't start front server(%s): %s" % [@front.class.name, @exception.message]
      end
    end

    # `ChildRegistrationError` is raised when child process failed to register to
    # parent front.
    class ChildRegistrationError < Error; end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pione-0.5.0 lib/pione/front/front-exception.rb
pione-0.5.0.alpha.2 lib/pione/front/front-exception.rb
pione-0.5.0.alpha.1 lib/pione/front/front-exception.rb
pione-0.4.2 lib/pione/front/front-exception.rb
pione-0.4.1 lib/pione/front/front-exception.rb
pione-0.4.0 lib/pione/front/front-exception.rb