Exception: APN::Errors::ExceededMessageSizeError

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ExceededMessageSizeError

:nodoc:


42
43
44
# File 'lib/apn_on_rails/apn_on_rails.rb', line 42

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