Exception: CmisServer::InvalidOperation

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 = {}) ⇒ InvalidOperation

Returns a new instance of InvalidOperation.



134
135
136
137
# File 'lib/cmis_server/exceptions.rb', line 134

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

Instance Method Details

#http_status_codeObject



147
148
149
# File 'lib/cmis_server/exceptions.rb', line 147

def http_status_code
  400
end

#summaryObject



143
144
145
# File 'lib/cmis_server/exceptions.rb', line 143

def summary
  @message || "The requested operation cannot be performed."
end

#titleObject



139
140
141
# File 'lib/cmis_server/exceptions.rb', line 139

def title
  "Invalid Operation"
end