class ErrorSerializer

Overview

This is the default error serializer generated by Lucky. Feel free to customize it in any way you like.

Defined in:

serializers/error_serializer.cr

Constructors

Instance Method Summary

Class methods inherited from class BaseSerializer

for_collection(collection : Enumerable, *args, **named_args) for_collection, for_collection_with_paginate(collection : Enumerable, pages : Lucky::Paginator, *args, **named_args) for_collection_with_paginate, nested_key_data(record, *args, **named_args) nested_key_data, nested_key_data_for_collection(records, *args, **named_args) nested_key_data_for_collection

Constructor Detail

def self.new(message : String, details : String | Nil = nil, param : String | Nil = nil) #

[View source]

Instance Method Detail

def render #

[View source]