Returns the PigStats with the given return code @param code the return code @return the PigStats with the given return code
(int code)
| 92 | * @return the PigStats with the given return code |
| 93 | */ |
| 94 | public static PigStats getPigStats(int code) { |
| 95 | PigStats ps = PigStats.get(); |
| 96 | if (ps == null) { |
| 97 | ps = PigStats.start(new EmptyPigStats()); |
| 98 | } |
| 99 | ps.setReturnCode(code); |
| 100 | return ps; |
| 101 | } |
| 102 | |
| 103 | public static void setErrorMessage(String msg) { |
| 104 | PigStats ps = PigStats.get(); |