package com.perforce.common;
public enum ExitCode {
OK(0),
USAGE(1),
SHUTDOWN(2),
WARNING(3),
EXCEPTION(4),
UNKNOWN(5);
final int code;
ExitCode(int c) {
code = c;
}
public int value() {
return code;
}
public static ExitCode parse(int code) {
for (ExitCode v : ExitCode.values()) {
if (code == v.value()) {
return v;
}
}
return UNKNOWN;
}
}
# |
Change |
User |
Description |
Committed |
|
#1
|
12446 |
Paul Allen |
Branching using p4convert-rusty |
|
|
//guest/perforce_software/p4convert/src/com/perforce/common/ExitCode.java |
#1
|
9807 |
Paul Allen |
Initial import of p4-convert (from change 894340) |
|
|