Class ToolMessage


  • public class ToolMessage
    extends Message
    A generic message from the tool such as "file not found" type errors; there is no reason to create a special object for each error unlike the grammar errors, which may be rather complex. Sometimes you need to pass in a filename or something to say it is "bad". Allow a generic object to be passed in and the string template can deal with just printing it or pulling a property out of it. TODO what to do with exceptions? Want stack trace for internal errors?
    • Constructor Detail

      • ToolMessage

        public ToolMessage​(int msgID)
      • ToolMessage

        public ToolMessage​(int msgID,
                           java.lang.Object arg)
      • ToolMessage

        public ToolMessage​(int msgID,
                           java.lang.Throwable e)
      • ToolMessage

        public ToolMessage​(int msgID,
                           java.lang.Object arg,
                           java.lang.Object arg2)
      • ToolMessage

        public ToolMessage​(int msgID,
                           java.lang.Object arg,
                           java.lang.Throwable e)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object