Exception: WebConsole::ConsoleSession::Error

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/web_console/console_session.rb

Overview

Base error class for ConsoleSession specific exceptions.

Provides #to_json implementation, so all subclasses are JSON serializable.

Instance Method Summary collapse

Instance Method Details

#to_jsonObject



15
16
17
# File 'app/models/web_console/console_session.rb', line 15

def to_json(*)
  { error: to_s }.to_json
end