Class DataTableException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.martincooper.datatable.DataTableException
All Implemented Interfaces:
Serializable

public class DataTableException extends Exception
Custom Data Table Exception. Created by Martin Cooper on 14/07/2017.
See Also:
  • Constructor Details

    • DataTableException

      public DataTableException(String message)
      Data Table Exception
      Parameters:
      message - The exception message.
    • DataTableException

      public DataTableException(String message, Throwable throwable)
      Data Table Exception
      Parameters:
      message - The exception message.
      throwable - The inner exception.
  • Method Details

    • tryError

      public static <T> io.vavr.control.Try<T> tryError(String errorMessage)
      Creates a DataTableException wrapped in a Try.
      Type Parameters:
      T - The Try type.
      Parameters:
      errorMessage - The error message.
      Returns:
      Returns a new DataTable Exception in a try.
    • tryError

      public static <T> io.vavr.control.Try<T> tryError(String errorMessage, Throwable throwable)
      Creates a DataTableException wrapped in a Try.
      Type Parameters:
      T - The Try type.
      Parameters:
      errorMessage - The error message.
      throwable - The inner exception.
      Returns:
      Returns a new DataTable Exception in a try.