Class InvalidGameResultException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidGameResultException
    extends java.lang.RuntimeException
    Class for errors which occur when the end-result is invalid
    Author:
    Klara Schöbel
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidGameResultException​(java.lang.String message)
      constructs a new InvalidGameResultException with an error message
      InvalidGameResultException​(java.lang.String message, java.lang.Throwable err)
      constructs a new InvalidGameResultException passing on the root error and an error message
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidGameResultException

        public InvalidGameResultException​(java.lang.String message)
        constructs a new InvalidGameResultException with an error message
        Parameters:
        message - error message to be displayed
      • InvalidGameResultException

        public InvalidGameResultException​(java.lang.String message,
                                          java.lang.Throwable err)
        constructs a new InvalidGameResultException passing on the root error and an error message
        Parameters:
        message - error message to be displayed
        err - throwable to keep the root of the error