Class Error

All Implemented Interfaces:
Comparable<NamedBean>, PropertyChangeProvider, Base, DigitalAction, DigitalActionBean, NamedBean

public class Error extends AbstractDigitalAction
Returns from a Module or a ConditionalNG.
  • Constructor Details

  • Method Details

    • getDeepCopy

      public Base getDeepCopy(Map<String,String> systemNames, Map<String,String> userNames) throws JmriException
      Description copied from interface: Base
      Create a deep copy of myself and my children The item needs to try to lookup itself in both systemNames and userNames to see if the user has given a new system name and/or a new user name.If no new system name is given, an auto system name is used. If no user name is given, a null user name is used.
      Parameters:
      systemNames - a map of old and new system name
      userNames - a map of old system name and new user name
      Returns:
      a deep copy
      Throws:
      JmriException - in case of an error
    • setMessage

      public void setMessage(String message)
    • getMessage

      public String getMessage()
    • getCategory

      Get the category.
      Specified by:
      getCategory in interface Base
      Overrides:
      getCategory in class AbstractBase
      Returns:
      the category
    • execute

      public void execute() throws JmriException
      Execute this DigitalActionBean.
      Throws:
      JmriException - when an exception occurs
    • getShortDescription

      Description copied from interface: Base
      Get a short description of this item.
      Parameters:
      locale - The locale to be used
      Returns:
      a short description
    • getLongDescription

      public String getLongDescription(Locale locale)
      Description copied from interface: Base
      Get a long description of this item.
      Parameters:
      locale - The locale to be used
      Returns:
      a long description
    • setup

      public void setup()
      Setup this object and its children. This method is used to lookup system names for child sockets, turnouts, sensors, and so on.