Creates a new DecodeResult failure wrapping a DecodeError.OutOfBounds error.
Creates a new DecodeResult failure wrapping a DecodeError.OutOfBounds error.
scala> DecodeResult.outOfBounds(1) res0: DecodeResult[Nothing] = Left(OutOfBounds: 1 is not a valid index)
Creates a new DecodeResult failure wrapping a DecodeError.TypeError error.
Creates a new DecodeResult failure wrapping a DecodeError.TypeError error.
scala> DecodeResult.typeError(new Exception("not a valid int")) res0: DecodeResult[Nothing] = Left(TypeError: not a valid int)
Creates a new DecodeResult failure wrapping a DecodeError.TypeError error.
Creates a new DecodeResult failure wrapping a DecodeError.TypeError error.
scala> DecodeResult.typeError("not a valid int") res0: DecodeResult[Nothing] = Left(TypeError: not a valid int)
Provides convenience methods for creating instances of DecodeResult.