lib/washout_builder/document/generator.rb
# Returns the exceptions that a specific operation can raise
#
# @param [String] operation_name describe operation_name
# @return [Array<Class>]  returns an array with all the exception classes that the operation send as argument can raise
# @api public
Returns the exceptions that a specific operation can raise
Returns the exceptions that a specific operation can raise
def operation_exceptions(operation_name)
        hash_object = soap_actions.find { |operation, _formats| operation.to_s.downcase == operation_name.to_s.downcase }
        return if hash_object.blank?
        faults = hash_object[1][:raises]
        faults = faults.is_a?(Array) ? faults : [faults]
        faults.select { |x| WashoutBuilder::Type.valid_fault_class?(x) }
      end
def operation_exceptions ( operation_name ) hash_object = soap_actions . find { | operation , _formats | operation . to_s . downcase == operation_name . to_s . downcase } return if hash_object . blank? faults = hash_object [ 1 ] [ :raises ] faults = faults . is_a? ( Array ) ? faults : [ faults ] faults . select { | x | WashoutBuilder :: Type . valid_fault_class? ( x ) } end
Returns the exceptions that a specific operation can raise
Returns the exceptions that a specific operation can raise
returns an array with all the exception classes that the operation send as argument can raise
returns an array with all the exception classes that the operation send as argument can raise
Array<Class>
operation_name
<not_specific>
<not_specific>
operation_name describe operation_name
operation_name describe operation_name
api
None