Exception: ElasticBeans::Command::Exec::BastionAuthenticationError

Inherits:
Error
  • Object
show all
Defined in:
lib/elastic_beans/command/exec.rb

Instance Method Summary collapse

Constructor Details

#initialize(cause:) ⇒ BastionAuthenticationError

Returns a new instance of BastionAuthenticationError.



161
162
163
# File 'lib/elastic_beans/command/exec.rb', line 161

def initialize(cause:)
  @cause = cause
end

Instance Method Details

#backtraceObject



165
166
167
# File 'lib/elastic_beans/command/exec.rb', line 165

def backtrace
  @cause.backtrace
end

#messageObject



169
170
171
172
173
174
175
176
177
# File 'lib/elastic_beans/command/exec.rb', line 169

def message
  "\#{@cause.message}\n\nPlease check the bastion options and try again.\n\n\#{command_help \"exec\"}\n  MESSAGE\nend\n"