Group
Extension

Matches 1

Mojolicious-Plugin-ErrorsAndWarnings ( K/KW/KWAKWA/Mojolicious-Plugin-ErrorsAndWarnings-0.01.tar.gz, KWAKWA, 2015; MetaCPAN )
Mojolicious-Plugin-ErrorsAndWarnings/lib/Mojolicious/Plugin/ErrorsAndWarnings.pm ( view source; MetaCPAN )
   # {"errors":[{"code":"first_error"},{"code":"second_error","more":"detail"}]}
      $c->render(json => { errors => $c->errors });
    });
  }

  1;

=head1 DESCRIPTION

L<Mojolicious::Plugin::Error
g');

  # {"errors":[{"code":"first_error"}], "warnings":[{"code":"first_warning"}]}
  $c->render(json => {errors => $c->errors, warnings => $c->warnings});

The first argument to L</add_error> or L</
}
  $c->render(json => {errors => $c->errors, warnings => $c->warnings});

Additional members can be added to provide more specific information about the
problem. See also L<http://jsonapi.org/format/

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.