예제 #1
0
        /// <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);
            }
        }
예제 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="Error">The error from the server</param>
 public PerforceException(PerforceError Error)
     : base(Error.ToString())
 {
     this.Error = Error;
 }