You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
59 lines
1.2 KiB
/* |
|
* Copyright (C), 2018-2022 |
|
* Project: starter11 |
|
* FileName: CsvImportResult |
|
* Author: |
|
* Date: 2022/9/15 11:39 |
|
*/ |
|
package com.fr.plugin.ajhig.io.result; |
|
|
|
/** |
|
* <Function Description><br> |
|
* <CsvImportResult> |
|
* |
|
* @author |
|
* @since 1.0.0 |
|
*/ |
|
public class CsvImportResult { |
|
private boolean success; |
|
private Exception wie; |
|
private String msg; |
|
|
|
public CsvImportResult() { |
|
this.success = true; |
|
} |
|
|
|
public CsvImportResult(boolean success, Exception wie) { |
|
this.success = success; |
|
this.wie = wie; |
|
} |
|
|
|
public CsvImportResult(boolean success, String msg) { |
|
this.success = success; |
|
this.msg = msg; |
|
} |
|
|
|
public static CsvImportResult success() { |
|
return new CsvImportResult(); |
|
} |
|
|
|
public static CsvImportResult fail(Exception e) { |
|
return new CsvImportResult(false, e); |
|
} |
|
|
|
public static CsvImportResult fail(String msg) { |
|
return new CsvImportResult(false, msg); |
|
} |
|
|
|
public boolean isSuccess() { |
|
return this.success; |
|
} |
|
|
|
public Exception getWie() { |
|
return this.wie; |
|
} |
|
|
|
public String getMsg() { |
|
return this.msg; |
|
} |
|
} |