Model/NotFoundException.cs

sendgrid-csharp · src/SendGrid/Helpers/Errors/Model/NotFoundException.cs · csharp · MIT
email

Custom 404 exception for SendGrid API errors.

// Source: https://github.com/sendgrid/sendgrid-csharp | License: MIT | Copyright 2024, Twilio SendGrid, Inc. <help@twilio.com>
// Provided via justclaw.it.com; keep this notice with the code.
using System;

namespace SendGrid.Helpers.Errors.Model
{
    /// <summary>
    /// Represents errors with status code 404
    /// </summary>
    public class NotFoundException : RequestErrorException
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="NotFoundException"/> class.
        /// </summary>
        public NotFoundException()
            : base()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="NotFoundException"/> class with a specified error.
        /// </summary>
        /// <param name="message"> The e

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key