error

open override fun error(): Nothing?

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