[][src]Crate dynerr

Macros

check

Does .unwrap_or_else(|e| logged_panic!(e)) on result
if no file supplied then defaults to "event.log"

dynerr

a macro for returning custom errors as dynamic errors

dynmatch

performs a dynamic match operation on multiple error types
takes the DynError, match arms, and default arm
types must be specified beforehand with the "type" keyword

log

logs message to file
if no file supplied then defaults to "event.log"

logged_panic

logs error to file then panic!
if no file supplied then defaults to "event.log"

Functions

log

appends [event] to [log_file]
creates file if it doesnt exist
panics on failure to create or appending to file

Type Definitions

DynResult

an alias for result that uses dynamic errors