Exception: CmisServer::ConstraintViolation

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

Returns a new instance of ConstraintViolation.



167
168
169
170
# File 'lib/cmis_server/exceptions.rb', line 167

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

Instance Method Details

#http_status_codeObject



180
181
182
# File 'lib/cmis_server/exceptions.rb', line 180

def http_status_code
  409
end

#summaryObject



176
177
178
# File 'lib/cmis_server/exceptions.rb', line 176

def summary
  @message || "A constraint has been violated."
end

#titleObject



172
173
174
# File 'lib/cmis_server/exceptions.rb', line 172

def title
  "Constraint Violation"
end