ServiceError class

namespace: Serenity.Services   assemblySerenity.Net.Services

The error object model returned from a service

public class ServiceError

Public Members

name description
ServiceError() The default constructor.
Arguments { get; set; } Custom arguments info for the error. In some cases, this might be the field name the error is related to.
Code { get; set; } Error code if any
Details { get; set; } Error details, like stack trace etc. Normally, this is only returned in development mode.
ErrorId { get; set; } When provided, this might be the related error ID stored in the exception log.
Message { get; set; } The error message. In non-development mode the message might be something generic like "some error occured" if the error itself is not a ValidationError. The detailed error can be seen in exception log.

See Also