Class ConfigException

  • All Implemented Interfaces:
    java.io.Serializable, net.morimekta.util.Displayable
    Direct Known Subclasses:
    ConfigWarning

    public class ConfigException
    extends net.morimekta.util.lexer.LexerException
    Providence config exceptions are extensions of the serializer exception (as parsing config can be seen as parsing or de-serializing any serialized message).
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String file  
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigException​(java.lang.String format, java.lang.Object... args)  
      ConfigException​(java.lang.Throwable cause, java.lang.String format, java.lang.Object... args)  
      ConfigException​(ConfigToken token, java.lang.String format, java.lang.Object... args)  
      ConfigException​(net.morimekta.providence.serializer.JsonSerializerException cause)  
      ConfigException​(net.morimekta.providence.serializer.pretty.PrettyException cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getError()  
      java.lang.String getFile()  
      ConfigException initCause​(java.lang.Throwable cause)  
      ConfigException setFile​(java.lang.String file)  
      java.lang.String toString()  
      • Methods inherited from class net.morimekta.util.lexer.LexerException

        displayString, getLength, getLine, getLineNo, getLinePos, replaceNonPrintable
      • Methods inherited from class java.lang.Throwable

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

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

      • file

        protected java.lang.String file
    • Constructor Detail

      • ConfigException

        public ConfigException​(java.lang.String format,
                               java.lang.Object... args)
      • ConfigException

        public ConfigException​(@Nonnull
                               net.morimekta.providence.serializer.pretty.PrettyException cause)
      • ConfigException

        public ConfigException​(@Nonnull
                               net.morimekta.providence.serializer.JsonSerializerException cause)
      • ConfigException

        public ConfigException​(java.lang.Throwable cause,
                               java.lang.String format,
                               java.lang.Object... args)
      • ConfigException

        public ConfigException​(ConfigToken token,
                               java.lang.String format,
                               java.lang.Object... args)
    • Method Detail

      • getFile

        public java.lang.String getFile()
      • getError

        protected java.lang.String getError()
        Overrides:
        getError in class net.morimekta.util.lexer.LexerException
      • initCause

        @Nonnull
        public ConfigException initCause​(java.lang.Throwable cause)
        Overrides:
        initCause in class net.morimekta.util.lexer.LexerException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class net.morimekta.util.lexer.LexerException