Exception: GameServer::ServerError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/server_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, comment = "") ⇒ ServerError

Returns a new instance of ServerError.



3
4
5
6
7
# File 'lib/server_error.rb', line 3

def initialize(name, comment = "")
  self.name = name
  self.comment = comment
  super(name)
end

Instance Attribute Details

#commentObject

Returns the value of attribute comment.



2
3
4
# File 'lib/server_error.rb', line 2

def comment
  @comment
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/server_error.rb', line 2

def name
  @name
end