Class 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)
    As the computation may consist of multiple command executions, multiple files of each type may be registered.

    In order to create a ComputationException, you will need to use a ComputationExceptionBuilder.

    Author:
    Yichen TANG , Sylvain LECLERC
    See Also:
    Serialized Form
    • 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.