Class SimulationResult.ErrorDetail

java.lang.Object
neqsim.process.processmodel.SimulationResult.ErrorDetail
Enclosing class:
SimulationResult

public static class SimulationResult.ErrorDetail extends Object
Detailed error information for a specific issue.
Author:
Even Solbraa @version 1.0
  • Field Details

    • code

      private final String code
    • message

      private final String message
    • unit

      private final String unit
    • remediation

      private final String remediation
  • Constructor Details

    • ErrorDetail

      public ErrorDetail(String code, String message, String unit, String remediation)
      Creates an error detail.
      Parameters:
      code - error code (e.g., "MISSING_INLET", "FLUID_ERROR")
      message - human-readable error description
      unit - name of the equipment that caused the error (nullable)
      remediation - actionable fix description
  • Method Details

    • getCode

      public String getCode()
      Gets the error code.
      Returns:
      the error code
    • getMessage

      public String getMessage()
      Gets the error message.
      Returns:
      the error message
    • getUnit

      public String getUnit()
      Gets the unit name that caused the error.
      Returns:
      the unit name, or null if not unit-specific
    • getRemediation

      public String getRemediation()
      Gets the remediation advice.
      Returns:
      the remediation string
    • toJsonObject

      public com.google.gson.JsonObject toJsonObject()
      Converts this error to a JSON object.
      Returns:
      JSON representation
    • toString

      public String toString()
      Overrides:
      toString in class Object