Exception: CmisServer::InvalidTypeDefinition

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

Returns a new instance of InvalidTypeDefinition.



115
116
117
118
# File 'lib/cmis_server/exceptions.rb', line 115

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

Instance Method Details

#http_status_codeObject



128
129
130
# File 'lib/cmis_server/exceptions.rb', line 128

def http_status_code
  400
end

#summaryObject



124
125
126
# File 'lib/cmis_server/exceptions.rb', line 124

def summary
  @message || "The type definition is invalid."
end

#titleObject



120
121
122
# File 'lib/cmis_server/exceptions.rb', line 120

def title
  "Invalid Type Definition"
end