/// <summary> /// Throws an exception if the response is an error /// </summary> public void RequireSuccess() { PerforceError Error = InternalData as PerforceError; if (Error != null) { throw new PerforceException(Error); } }
/// <summary> /// Constructor /// </summary> /// <param name="Error">The error from the server</param> public PerforceException(PerforceError Error) : base(Error.ToString()) { this.Error = Error; }