Enum Class Blame

java.lang.Object
java.lang.Enum<Blame>
ch.tocco.nice2.netui.api.bind.Blame
All Implemented Interfaces:
Serializable, Comparable<Blame>, Constable

public enum Blame extends Enum<Blame>
Tells who or what's likely to blame when exceptions occur. Based on this decisions like logging can be made. Roles - Administrator - Developer - Implementer
  • Enum Constant Details

    • CIRCUMSTANCE

      public static final Blame CIRCUMSTANCE
      Such errors may be logged for the developers long term, but generally don't make much sense for the implementer. For example if a persist exception occurs often in one place it could be useful for diagnostics.
    • CODE

      public static final Blame CODE
      For example an IllegalArgumentException.
    • CONFIG

      public static final Blame CONFIG
      Misconfigured system, for example a referenced entity that is not included in that customer's installation. Such errors can also come from deployment problems, and should be logged.
  • Method Details

    • values

      public static Blame[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Blame valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • doLog

      public boolean doLog()