class Postmark::ApiInputError
Constants
- INACTIVE_RECIPIENT
- INVALID_EMAIL_REQUEST
Attributes
error_code[RW]
Public Class Methods
build(body, parsed_body)
click to toggle source
# File lib/postmark/error.rb, line 52 def self.build(body, parsed_body) error_code = parsed_body['ErrorCode'].to_i case error_code when INACTIVE_RECIPIENT InactiveRecipientError.new(error_code, body, parsed_body) when INVALID_EMAIL_REQUEST InvalidEmailRequestError.new(error_code, body, parsed_body) else new(error_code, body, parsed_body) end end
new(error_code = nil, body = '', parsed_body = {})
click to toggle source
Calls superclass method
Postmark::HttpServerError::new
# File lib/postmark/error.rb, line 65 def initialize(error_code = nil, body = '', parsed_body = {}) self.error_code = error_code.to_i super(422, body, parsed_body) end
Public Instance Methods
retry?()
click to toggle source
# File lib/postmark/error.rb, line 70 def retry? false end