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
|
13876 |
Paul Allen |
Rename/move file(s) |
|
|
//guest/paul_allen/p4convert-maven/src/com/perforce/common/ExitCode.java |
#1
|
13873 |
Paul Allen |
Branching using p4convert-maven |
|
|
//guest/perforce_software/p4convert/src/com/perforce/common/ExitCode.java |
#1
|
9807 |
Paul Allen |
Initial import of p4-convert (from change 894340) |
|
|