Class Broken<T,​E extends java.lang.Exception>

  • All Implemented Interfaces:
    Fragile<T,​E>

    public final class Broken<T,​E extends java.lang.Exception>
    extends java.lang.Object
    implements Fragile<T,​E>
    A Fragile which is broken and always throws an Exception.
    • Constructor Summary

      Constructors 
      Constructor Description
      Broken​(E exception)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T value()
      Retrieve the value.
      • Methods inherited from class java.lang.Object

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

      • Broken

        public Broken​(E exception)
    • Method Detail

      • value

        public T value()
                throws E extends java.lang.Exception
        Description copied from interface: Fragile
        Retrieve the value.
        Specified by:
        value in interface Fragile<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception