Class: ServiceStack::ResponseError

Inherits:
Object
  • Object
show all
Includes:
DTO
Defined in:
lib/servicestack/types.rb

Overview

A field validation error within a ResponseStatus.

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from DTO

#==, included, #initialize, #inspect, #to_hash, #to_json

Instance Attribute Details

#error_codeObject

Returns the value of attribute error_code.



9
10
11
# File 'lib/servicestack/types.rb', line 9

def error_code
  @error_code
end

#field_nameObject

Returns the value of attribute field_name.



9
10
11
# File 'lib/servicestack/types.rb', line 9

def field_name
  @field_name
end

#messageObject

Returns the value of attribute message.



9
10
11
# File 'lib/servicestack/types.rb', line 9

def message
  @message
end

#metaObject

Returns the value of attribute meta.



9
10
11
# File 'lib/servicestack/types.rb', line 9

def meta
  @meta
end

Class Method Details

.propertiesObject



11
12
13
14
15
16
17
18
# File 'lib/servicestack/types.rb', line 11

def self.properties
  {
    error_code: { name: 'errorCode' },
    field_name: { name: 'fieldName' },
    message: { name: 'message' },
    meta: { name: 'meta' },
  }
end