Class SimulationResult.ErrorDetail
java.lang.Object
neqsim.process.processmodel.SimulationResult.ErrorDetail
- Enclosing class:
SimulationResult
Detailed error information for a specific issue.
- Author:
- Even Solbraa @version 1.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionErrorDetail(String code, String message, String unit, String remediation) Creates an error detail. -
Method Summary
-
Field Details
-
code
-
message
-
unit
-
remediation
-
-
Constructor Details
-
ErrorDetail
Creates an error detail.- Parameters:
code- error code (e.g., "MISSING_INLET", "FLUID_ERROR")message- human-readable error descriptionunit- name of the equipment that caused the error (nullable)remediation- actionable fix description
-
-
Method Details
-
getCode
-
getMessage
-
getUnit
Gets the unit name that caused the error.- Returns:
- the unit name, or null if not unit-specific
-
getRemediation
-
toJsonObject
public com.google.gson.JsonObject toJsonObject()Converts this error to a JSON object.- Returns:
- JSON representation
-
toString
-