Click here to Skip to main content
15,883,766 members
Articles / Web Development / IIS

Build ReST based Web Services in .NET/C#

Rate me:
Please Sign up or sign in to vote.
5.00/5 (12 votes)
12 Jul 2009CPOL2 min read 122.4K   5.5K   55  
A ReST based Web Service for C#.
using System;
using System.Collections.Generic;
using System.Text;

namespace PoC.Web.Services
{
    /// <summary>
    /// Exception
    /// </summary>
    public class InternalErrorException : System.Exception
    {
        int statusCode;

        public InternalErrorException(int errorCode, string message)
            : base(message)
        {
            this.statusCode = errorCode;
        }
        public int ErrorCode
        {
            get { return statusCode; }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
Loves coding...

Comments and Discussions