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
public final class ComputationException extends PowsyblException
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 aComputationExceptionBuilder
.- Author:
- Yichen TANG
, Sylvain LECLERC - See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getErrLogs()
Returns a map which log file name is key, and standard error message is valueMap<String,byte[]>
getFileBytes()
Returns a map which file name is key, and file content (as raw bytes) is valueMap<String,String>
getOutLogs()
Returns a map which log file name is key, and standard output message is valuebyte[]
toZipBytes()
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 Detail
-
getOutLogs
public Map<String,String> 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
public Map<String,String> 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
public Map<String,byte[]> 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.
-
-