Exemplo n.º 1
0
        /// <summary>Anies the given request.</summary>
        ///
        /// <exception cref="HttpError">              Thrown when a HTTP error error condition occurs.</exception>
        /// <exception cref="NotImplementedException">Thrown when the requested operation is unimplemented.</exception>
        ///
        /// <param name="request">The request.</param>
        ///
        /// <returns>An object.</returns>
        public object Any(AlwaysThrows request)
        {
            if (request.StatusCode.HasValue)
            {
                throw new HttpError(
                          request.StatusCode.Value,
                          typeof(NotImplementedException).Name,
                          request.Value);
            }

            throw new NotImplementedException(GetErrorMessage(request.Value));
        }
Exemplo n.º 2
0
        /// <summary>Anies the given request.</summary>
        ///
        /// <exception cref="HttpError">              Thrown when a HTTP error error condition occurs.</exception>
        /// <exception cref="NotImplementedException">Thrown when the requested operation is unimplemented.</exception>
        ///
        /// <param name="request">The request.</param>
        ///
        /// <returns>An object.</returns>
		public object Any(AlwaysThrows request)
		{
            if (request.StatusCode.HasValue)
            {
                throw new HttpError(
                    request.StatusCode.Value,
                    typeof(NotImplementedException).Name,
                    request.Value);
            }

			throw new NotImplementedException(GetErrorMessage(request.Value));
		}