ru.johnspade.csv3s.codecs

Members list

Type members

Classlikes

enum DecodeError(msg: String) extends ReadError

Parent type for all errors that can occur while decoding CSV data.

Parent type for all errors that can occur while decoding CSV data.

Attributes

Supertypes
trait Enum
class ReadError
class Error
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Decoder[E, D, F]

Type class for types that can be decoded from other types.

Type class for types that can be decoded from other types.

Type parameters

D

decoded type - what to decode to.

E

encoded type - what to decode from.

F

failure type - how to represent errors.

Attributes

Supertypes
class Object
trait Matchable
class Any
trait Encoder[E, D]

Type class for types that can be encoded into others.

Type class for types that can be encoded into others.

Type parameters

D

decoded type - what to encode from.

E

encoded type - what to encode to.

Attributes

Supertypes
class Object
trait Matchable
class Any
abstract class Error(message: String) extends Exception, Product, Serializable

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class ReadError
case TypeError
enum ParseError
case IOError
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object instances.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object instances.type
enum ParseError(msg: String) extends ReadError

Parent type for all errors that can occur while parsing CSV data.

Parent type for all errors that can occur while parsing CSV data.

Attributes

Supertypes
trait Enum
class ReadError
class Error
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
case IOError
sealed abstract class ReadError(msg: String) extends Error

Parent type for all errors that can occur while dealing with CSV data.

Parent type for all errors that can occur while dealing with CSV data.

ReadError is split into two main error types:

  • DecodeError: errors that occur while decoding a cell or a row.
  • ParseError: errors that occur while parsing raw data into CSV.

Attributes

Supertypes
class Error
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
object RowDecoder extends ProductDerivation[RowDecoder]

Attributes

Supertypes
trait ProductDerivation[RowDecoder]
trait CommonDerivation[RowDecoder]
class Object
trait Matchable
class Any
Self type
RowDecoder.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object instances.type
object RowEncoder extends ProductDerivation[RowEncoder]

Attributes

Supertypes
trait ProductDerivation[RowEncoder]
trait CommonDerivation[RowEncoder]
class Object
trait Matchable
class Any
Self type
RowEncoder.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object instances.type
object StringDecoder

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all
Self type
instances.type

Types

type DecodeResult[A] = Either[DecodeError, A]
type FieldEncoder[A] = Encoder[Field, A]
type RowEncoder[A] = Encoder[Row, A]
type StringDecoder[A] = Decoder[String, A, DecodeError]
type StringEncoder[A] = Encoder[String, A]