Package com.powsybl.computation
Class ComputationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.powsybl.commons.PowsyblException
com.powsybl.computation.ComputationException
- All Implemented Interfaces:
Serializable
A special exception containing information about an error that occurred during
an externally executed computation.
In particular, it may contain:
- Standard output of executed commands
- Standard error of executed commands
- Other logs of executed commands as bytes, which may represent plain text files or archives (for instance, it may contain outputs of other sub-commands of the computation)
In order to create a ComputationException
, you will need to use a ComputationExceptionBuilder
.
- Author:
- Yichen TANG <yichen.tang at rte-france.com>, Sylvain LECLERC <sylvain.leclerc at rte-france.com>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns a map which log file name is key, and standard error message is valueReturns a map which file name is key, and file content (as raw bytes) is valueReturns a map which log file name is key, and standard output message is valuebyte[]
Serialize logs(.out/.err/files) to zip bytes.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getOutLogs
Returns a map which log file name is key, and standard output message is value- Returns:
- a map which log file name is key, and standard output message is value
-
getErrLogs
Returns a map which log file name is key, and standard error message is value- Returns:
- a map which log file name is key, and standard error message is value
-
getFileBytes
Returns a map which file name is key, and file content (as raw bytes) is value- Returns:
- a map which file name is key, and file content (as raw bytes) is value
-
toZipBytes
public byte[] toZipBytes()Serialize logs(.out/.err/files) to zip bytes.
-