package com.perforce.p4java_ext; /** * Almost all methods in the p4data project, when they encounter an * unrecoverable issue, will throw this exception, instead of a typed * exception. */ public class P4Exception extends RuntimeException { private String codeValue; public P4Exception() { super(); } public P4Exception(String s) { super(s); } public P4Exception(String s, String codeValue) { this(s); this.codeValue = codeValue; } public P4Exception(String s, Throwable throwable) { super(s, throwable); } public P4Exception(Throwable throwable) { super(throwable); } /** * When non-null, this exception was generated from the Perforce server * (as opposed to p4Java), and represents some server code. */ public String getCodeValue() { return codeValue; } public void setCodeValue(String codeValue) { this.codeValue = codeValue; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 9086 | tjuricek |
0.1.0 Initial release of p4java_ext Mostly just contains enough of the P4 API to build the test data initializer. About 4 commands have minimal testing, so it works. Kind of. |
||
#1 | 9085 | tjuricek | First import of the project, before package refactoring. |