print custom error type name and message in .stack