Exception: ApnErrorsHelper::ExceededMessageSizeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/handy_apn/apn_errors_helper.rb

Overview

Raised when a notification message to Apple is longer than 256 bytes.

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ExceededMessageSizeError

:nodoc:



5
6
7
# File 'lib/handy_apn/apn_errors_helper.rb', line 5

def initialize(message) # :nodoc:
  super("The maximum size allowed for a notification payload is 256 bytes: '#{message}'")
end