Ejemplo n.º 1
0
        /// <summary>
        /// Creates an error response based in an exception.
        /// </summary>
        /// <param name="e">Exception</param>
        public ApiResponse(AuctionMasterException e)
        {
            this._responseCode = 500;
            this._responseType = ApiResponseType.FAIL;

            if (e != null)
            {
                this._responsePayload = e.ToString();
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a log message from an exception.
 /// </summary>
 /// <param name="e">Exception</param>
 /// <returns>String</returns>
 public static String createLog(AuctionMasterException e)
 {
     return(null);
 }