Abort

com.bilalfazlani.zioMaelstrom.ErrorCode.Abort
object Abort extends ErrorCode

Indicates that some kind of general, definite error occurred. Use this as a catch-all for errors you can't otherwise categorize, when you specifically know that the requested operation has not taken place. For instance, you might encounter an indefinite failure during the prepare phase of a transaction: since you haven't started the commit process yet, the transaction can't have taken place. It's therefore safe to return a definite abort to the client.

Attributes

Graph
Supertypes
trait ErrorCode
class Object
trait Matchable
class Any
Self type
Abort.type

Members list

Value members

Inherited fields

val code: Int

Attributes

Inherited from:
ErrorCode
val definite: Boolean

Attributes

Inherited from:
ErrorCode