Class OptionGetters


  • public class OptionGetters
    extends Object
    Methods for getting values from Options and other Fugue wrappers.
    • Constructor Detail

      • OptionGetters

        public OptionGetters()
    • Method Detail

      • getOrThrowNotFound

        public static <T> T getOrThrowNotFound​(com.atlassian.fugue.Option<T> option,
                                               String errorMessage)
                                        throws NotFoundException
        Retrieve the non-null value from an Option, or throw a NotFoundException.
        Type Parameters:
        T -
        Parameters:
        option -
        errorMessage -
        Returns:
        the value
        Throws:
        NotFoundException