using System; using System.Collections.Generic; using System.Text; namespace P4API.Exceptions { public class P4APIExceptions : System.Exception { internal P4APIExceptions(){} public override string Message { get { return "Generic P4API exception!"; } } } public class ServerNotConnected : P4APIExceptions { internal ServerNotConnected() { } public override string Message { get { return "Attempting to run a command while the Perforce Server is not connected!\n"; } } } public class ServerAlreadyConnected : P4APIExceptions { internal ServerAlreadyConnected() { } public override string Message { get { return "Changing the port when a server is connected is not allowed!\n"; } } } public class InvalidLogin : P4APIExceptions { private string _message; internal InvalidLogin(string Message) { _message = Message; } public override string Message { get { return String.Format("Invalid Login!\n{0}", _message) ; } } } public class ServerNotConnected_SetVar : P4APIExceptions { internal ServerNotConnected_SetVar() { } public override string Message { get { return "Attempting to set a property that requires the server to be connected first!\n"; } } } public class ServerNotConnected_SetVar_AfterInit : P4APIExceptions { internal ServerNotConnected_SetVar_AfterInit() { } public override string Message { get { return "Attempting to set a property that can not be set after the server is connected!\n"; } } } public class PerforceInitializationError : P4APIExceptions { private string _P4Msg; internal PerforceInitializationError(string msg) { _P4Msg = msg; } public override string Message { get { return String.Format("Unable to connect to the Perforce Server!\n%1", _P4Msg); } } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#10 | 5830 | Shawn Hladky | P4.Net: reorg to support release branches | ||
#9 | 5798 | Shawn Hladky |
P4.Net... still not ready for beta Added license to all files Added several doc files Misc bugs |
||
#8 | 5774 | Shawn Hladky |
P4.Net. A few bug fixes. Addes first draft of MSBuild custom tasks. |
||
#7 | 5636 | Shawn Hladky |
1. Added test harness framework, and some initial tests 2. Fixed many bugs (oddly enough identified by the unit tests) 3. Fixes so will build 1.1 Framework (and build batch files actually work) 4. Pathetic attempt at documentation |
||
#6 | 5433 | Shawn Hladky | P4.Net More refactoring | ||
#5 | 5431 | Shawn Hladky |
Refactoring... step 1. |
||
#4 | 5427 | Shawn Hladky | P4.Net -- several fixes and added sample application | ||
#3 | 5373 | Shawn Hladky | P4.Net: Still WIP, but some things starting to work | ||
#2 | 5362 | Shawn Hladky | Chipping away at the API changes | ||
#1 | 5349 | Shawn Hladky |
Initial check-in for the new API interface. Nothing works yet, but it should compile at least. |