Exception: Humidifier::SdkPayload::TemplateTooLargeError

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

Overview

Thrown when a template is too large to use the template_url option

Instance Method Summary collapse

Constructor Details

#initialize(bytesize) ⇒ TemplateTooLargeError

Returns a new instance of TemplateTooLargeError.



19
20
21
22
23
24
25
26
# File 'lib/humidifier/sdk_payload.rb', line 19

def initialize(bytesize)
  message =
    "Cannot use a template > #{MAX_TEMPLATE_URL_SIZE} bytes " \
    "(currently #{bytesize} bytes), consider using nested stacks " \
    '(http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide' \
    '/aws-properties-stack.html)'
  super(message)
end