error

abstract fun error(): E?

Returns the error associated. In case of Success, error will be null.