Sha256: 82809efbc098fed20d0374932d1100de8ed5fda2a3ec2cfe1891c5adf09e3392
Contents?: true
Size: 609 Bytes
Versions: 7
Compression:
Stored size: 609 Bytes
Contents
# frozen_string_literal: true # Represents a general RuntimeError during the application execution class GyozaError < RuntimeError def self.invalidDirectory(directory) return GyozaError.new("\"#{directory}\" is not a valid directory.") end def self.serverAlreadyStarted(port) return GyozaError.new("Server is already listening on port #{port}.") end def self.serverNotStarted return GyozaError.new('Server has not been started yet.') end def self.invalidStatusCode(code) return GyozaError.new("Invalid status code #{code}. Expecting value between 100 and 599.") end end
Version data entries
7 entries across 7 versions & 1 rubygems