vibe.d beta banner
get vibe.d
0.8.1

Asynchronous I/O that doesn’t get in your way, written in D

Function errorDisplay.errorDisplay

Attribute to customize how errors/exceptions are displayed.

auto errorDisplay () @property;

The first template parameter takes a function that maps an exception and an optional field name to a single error type. The result of this function will then be passed as the error parameter to the method referenced by the second template parameter.

Supported types for the error parameter are bool, string, Exception, or a user defined struct. The field member, if present, will be set to null if the exception was thrown after the field validation has finished.

Authors

Sönke Ludwig

Copyright

© 2013-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.