Class ThrowsException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
      private java.lang.Throwable throwable  
    • Constructor Summary

      Constructors 
      Constructor Description
      ThrowsException​(java.lang.Throwable throwable)
      Creates a new answer always throwing the given throwable.
    • Field Detail

      • throwable

        private final java.lang.Throwable throwable
    • Constructor Detail

      • ThrowsException

        public ThrowsException​(java.lang.Throwable throwable)
        Creates a new answer always throwing the given throwable. If it is null, answer validation will fail.