Exception: WssAgent::WssAgentError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wss_agent.rb

Constant Summary collapse

URL_INVALID =
'Api url is invalid. Could you please check url in wss_agent.yml'.freeze
CANNOT_FIND_TOKEN =
"Can't find Token, please add your Whitesource API token in the wss_agent.yml file".freeze
CANNOT_FIND_URL =
"Can't find the url, please add your Whitesource url destination in the wss_agent.yml file.".freeze
INVALID_CONFIG_FORMAT =
'Problem reading wss_agent.yml, please check the file is a valid YAML'.freeze
NOT_FOUND_CONFIGFILE =
"Config file isn't exist. Could you please run 'wss_agent config' before.".freeze

Class Method Summary collapse

Class Method Details

.status_code(code) ⇒ Object



30
31
32
# File 'lib/wss_agent.rb', line 30

def self.status_code(code)
  define_method(:status_code) { code }
end