Package com.iizix.run

Class BuilderError

java.lang.Object
com.iizix.run.BuilderError

public class BuilderError extends Object
Class to hold a builder error for verification.
Author:
Christopher Mindus
  • Field Details

    • name

      public final String name
      The property name in error.
    • location

      public final String location
      The location.
    • isError

      public final boolean isError
      The severity: true for error, false for warning.
    • error

      public final String error
      The error.
  • Constructor Details

    • BuilderError

      public BuilderError(String name, String location, String error)
      Constructor for isError = true.
      Parameters:
      name - The property name in error.
      location - The location.
      error - The error.
    • BuilderError

      public BuilderError(String name, String location, boolean isError, String error)
      Constructor.
      Parameters:
      name - The property name in error.
      location - The location.
      isError - The severity: true for error, false for warning.
      error - The error.
    • BuilderError

      public BuilderError(PropCnr pc, int index)
      Constructor from a remote property error container.
      Parameters:
      pc - The property container.
      index - The index.
  • Method Details

    • add

      public void add(PropCnr pc, int index)
      Adds an error to a remote property container for errors.
      Parameters:
      pc - The property container.
      index - The index.
    • equals

      public boolean equals(Object o)
      Checks for equality.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Outputs to string for debug purposes.
      Overrides:
      toString in class Object