Exception: CmisServer::InvalidArgument

Inherits:
CmisStandardError show all
Defined in:
lib/cmis_server/exceptions.rb

Instance Attribute Summary

Attributes inherited from CmisStandardError

#debug_data, #trigger

Instance Method Summary collapse

Methods inherited from CmisStandardError

#http_status, #log, #message, #to_h, #to_xml

Constructor Details

#initialize(message = nil, attrs = {}) ⇒ InvalidArgument

Returns a new instance of InvalidArgument.



186
187
188
189
# File 'lib/cmis_server/exceptions.rb', line 186

def initialize(message = nil, attrs = {})
  super(attrs)
  @message = message
end

Instance Method Details

#http_status_codeObject



199
200
201
# File 'lib/cmis_server/exceptions.rb', line 199

def http_status_code
  400
end

#summaryObject



195
196
197
# File 'lib/cmis_server/exceptions.rb', line 195

def summary
  @message || "One or more arguments are invalid."
end

#titleObject



191
192
193
# File 'lib/cmis_server/exceptions.rb', line 191

def title
  "Invalid Argument"
end