Add error convenience methods.