Failed result with error error.
Type of the error. It has to extend Exception.
Returns the error associated. In case of Success, error will be null.
Returns the value associated. In case of Failure, value will be null.