public class ComputationExceptionBuilder
extends java.lang.Object
Constructor and Description |
---|
ComputationExceptionBuilder(java.lang.Exception exception) |
Modifier and Type | Method and Description |
---|---|
ComputationExceptionBuilder |
addErrLog(java.lang.String logName,
java.lang.String log) |
ComputationExceptionBuilder |
addErrLogIfExists(java.nio.file.Path path)
Log the content of .err file.
|
ComputationExceptionBuilder |
addException(java.lang.Exception exception)
If the exception is Null, do nothing.
|
ComputationExceptionBuilder |
addFileIfExists(java.nio.file.Path path) |
ComputationExceptionBuilder |
addOutLog(java.lang.String logName,
java.lang.String log) |
ComputationExceptionBuilder |
addOutLogIfExists(java.nio.file.Path path)
Log the content of .out file.
|
ComputationException |
build() |
public ComputationExceptionBuilder(java.lang.Exception exception)
public ComputationExceptionBuilder addOutLogIfExists(@Nullable java.nio.file.Path path)
path
- public ComputationExceptionBuilder addOutLog(java.lang.String logName, @Nullable java.lang.String log)
logName
- the log name, should not be nulllog
- log content, could be nullpublic ComputationExceptionBuilder addErrLogIfExists(@Nullable java.nio.file.Path path)
path
- public ComputationExceptionBuilder addErrLog(java.lang.String logName, @Nullable java.lang.String log)
logName
- the log name, should not be nulllog
- log content, could be nullpublic ComputationExceptionBuilder addFileIfExists(@Nullable java.nio.file.Path path)
path
- to the potential filepublic ComputationExceptionBuilder addException(@Nullable java.lang.Exception exception)
exception
- public ComputationException build()
Copyright © 2019. All rights reserved.