enum Kemal::ParamError::Reason

Overview

Why a parameter failed: it was absent from the request (Missing), or it was present but couldn't be converted to the declared type (CastError).

Defined in:

kemal/from_www_form.cr

Enum Members

Missing = 0
CastError = 1

Instance Method Summary

Class methods inherited from struct Enum

from_www_form(name : String, params : Kemal::WWWForm, offset : Int32 = 0) : T from_www_form

Instance Method Detail

def cast_error? #

Returns true if this enum value equals CastError


[View source]
def missing? #

Returns true if this enum value equals Missing


[View source]