Exception: Nginxtra::Error::InvalidPartialArguments

Inherits:
InvalidConfig show all
Defined in:
lib/nginxtra/error.rb

Overview

Raised if a partial is called with anything but no arguments or a single Hash.

Constant Summary collapse

HEADER =
"Invalid partial arguments!".freeze
MESSAGE =
"You can only pass 0 arguments or 1 hash to a partial!".freeze

Instance Method Summary collapse

Methods inherited from Base

#output

Constructor Details

#initializeInvalidPartialArguments

Returns a new instance of InvalidPartialArguments.



80
81
82
# File 'lib/nginxtra/error.rb', line 80

def initialize
  super("Invalid partial arguments", header: HEADER, message: MESSAGE)
end