C# Класс NServiceMVC.ServiceException

An exception that causes the REST service to return a specific http status code and
Наследование: System.Exception, IServiceException
Показать файл Открыть проект

Открытые методы

Метод Описание
ServiceException ( System statusCode, object model ) : System

Return a specific HTTP status code with the specified model as the content. The model will be serialized according to the accept-types, just like a normal service response.

ServiceException ( object model ) : System

Throw a 500 - Internal Server Error, with the specified model as the content. The model will be serialized according to the accept-types, just like a normal service response.

Описание методов

ServiceException() публичный Метод

Return a specific HTTP status code with the specified model as the content. The model will be serialized according to the accept-types, just like a normal service response.
public ServiceException ( System statusCode, object model ) : System
statusCode System
model object
Результат System

ServiceException() публичный Метод

Throw a 500 - Internal Server Error, with the specified model as the content. The model will be serialized according to the accept-types, just like a normal service response.
public ServiceException ( object model ) : System
model object
Результат System