Class/Object

com.github.mehmetakiftutuncu.errors

Errors

Related Docs: object Errors | package errors

Permalink

case class Errors(errors: List[ErrorBase]) extends Product with Serializable

An immutable error container to easily represent errors

errors

A scala.collection.immutable.List of com.github.mehmetakiftutuncu.errors.base.ErrorBases

See also

com.github.mehmetakiftutuncu.errors.representation.ErrorRepresenter

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Errors
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Errors(errors: List[ErrorBase])

    Permalink

    errors

    A scala.collection.immutable.List of com.github.mehmetakiftutuncu.errors.base.ErrorBases

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(error: ErrorBase): Errors

    Permalink

    Adds given error to current errors

    Adds given error to current errors

    error

    Error to add

    returns

    A copy of current errors with given error added

  4. def ++(otherErrors: Errors): Errors

    Permalink

    Adds errors in another com.github.mehmetakiftutuncu.errors.Errors to the current errors

    Adds errors in another com.github.mehmetakiftutuncu.errors.Errors to the current errors

    otherErrors

    Errors to add

    returns

    A copy of current errors with given errors added

  5. def -(error: ErrorBase): Errors

    Permalink

    Removes given error from current errors if it exists

    Removes given error from current errors if it exists

    error

    Error to remove

    returns

    A copy of current errors with given error removed

  6. def --(otherErrors: Errors): Errors

    Permalink

    Removes errors in another com.github.mehmetakiftutuncu.errors.Errors from the current errors

    Removes errors in another com.github.mehmetakiftutuncu.errors.Errors from the current errors

    otherErrors

    Errors to remove

    returns

    A copy of current errors with given errors remove

  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def addAll(otherErrors: ErrorBase*): Errors

    Permalink

    Adds given errors to the current errors

    Adds given errors to the current errors

    otherErrors

    Errors to add

    returns

    A copy of current errors with given errors added

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def contains(error: ErrorBase): Boolean

    Permalink

    Checks whether given error exists in current errors

    Checks whether given error exists in current errors

    error

    Error to check

    returns

    true if given error exists in current errors, false otherwise

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. val errors: List[ErrorBase]

    Permalink

    A scala.collection.immutable.List of com.github.mehmetakiftutuncu.errors.base.ErrorBases

  14. def exists(check: (ErrorBase) ⇒ Boolean): Boolean

    Permalink

    Checks whether an error that satisfies given check exists in current errors

    Checks whether an error that satisfies given check exists in current errors

    check

    A check function from ErrorBase to Boolean

    returns

    true if an error that satisfies given check exists in current errors

  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hasErrors: Boolean

    Permalink

    Checks if there is any error added

    Checks if there is any error added

    returns

    true if there any error added

    See also

    com.github.mehmetakiftutuncu.errors.Errors#nonEmpty

  18. def isEmpty: Boolean

    Permalink

    Checks if there is no error added

    Checks if there is no error added

    returns

    true if there is no error added

    See also

    com.github.mehmetakiftutuncu.errors.Errors#nonEmpty

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def nonEmpty: Boolean

    Permalink

    Checks if there is any error added

    Checks if there is any error added

    returns

    true if there any error added

    See also

    com.github.mehmetakiftutuncu.errors.Errors#hasErrors

    com.github.mehmetakiftutuncu.errors.Errors#isEmpty

  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def numberOfErrors: Int

    Permalink

    Returns number of errors added

    Returns number of errors added

    returns

    Number of errors added

  25. def removeAll(otherErrors: ErrorBase*): Errors

    Permalink

    Removes given errors from the current errors

    Removes given errors from the current errors

    otherErrors

    Errors to remove

    returns

    A copy of current errors with given errors removed

  26. def represent[R](representer: ErrorRepresenter[R], includeWhen: Boolean): R

    Permalink

    Represents all of added errors using given representer

    Represents all of added errors using given representer

    R

    Type of the representer

    representer

    Representer to use when representing errors

    includeWhen

    If set to true, when value of the error will be included in the representation

    returns

    Representation of all of added errors using given representer

    See also

    com.github.mehmetakiftutuncu.errors.representation.ErrorRepresenter

  27. def represent(includeWhen: Boolean): String

    Permalink

    Represents all of added errors using com.github.mehmetakiftutuncu.errors.representation.JsonStringErrorRepresenter

    includeWhen

    If set to true, when value of the error will be included in the representation

    returns

    Representation of all of added errors

    See also

    com.github.mehmetakiftutuncu.errors.representation.ErrorRepresenter

  28. def size: Int

    Permalink

    Returns number of errors added

    Returns number of errors added

    returns

    Number of errors added

    See also

    com.github.mehmetakiftutuncu.errors.Errors#numberOfErrors

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink

    Represents all of added errors as scala.Predef.String using com.github.mehmetakiftutuncu.errors.representation.JsonStringErrorRepresenter

    Represents all of added errors as scala.Predef.String using com.github.mehmetakiftutuncu.errors.representation.JsonStringErrorRepresenter

    returns

    String representation of all of added errors

    Definition Classes
    Errors → AnyRef → Any
    See also

    com.github.mehmetakiftutuncu.errors.representation.ErrorRepresenter

  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped