Exception: CmisServer::ConstraintViolation
Instance Attribute Summary
#debug_data, #trigger
Instance Method Summary
collapse
#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_code ⇒ Object
180
181
182
|
# File 'lib/cmis_server/exceptions.rb', line 180
def http_status_code
409
end
|
#summary ⇒ Object
176
177
178
|
# File 'lib/cmis_server/exceptions.rb', line 176
def summary
@message || "A constraint has been violated."
end
|
#title ⇒ Object
172
173
174
|
# File 'lib/cmis_server/exceptions.rb', line 172
def title
"Constraint Violation"
end
|