Exception: BayException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/baykit/bayserver/bay_exception.rb

Instance Method Summary collapse

Constructor Details

#initialize(fmt = nil, *args) ⇒ BayException

Returns a new instance of BayException.



3
4
5
6
7
8
9
10
11
# File 'lib/baykit/bayserver/bay_exception.rb', line 3

def initialize(fmt = nil, *args)
  super(if fmt == nil
          nil
        elsif args == nil || args.length == 0
          sprintf("%s", fmt)
        else
          sprintf(fmt, *args)
        end)
end