wrapped error message by Error class