Component evidence

Model/UnsupportedMediaTypeException.cs

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

C# exception for HTTP 415 Unsupported Media Type errors.

Source preview first 800 characters · full source over MCP
// 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 415
    /// </summary>
    public class UnsupportedMediaTypeException : RequestErrorException
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UnsupportedMediaTypeException"/> class.
        /// </summary>
        public UnsupportedMediaTypeException()
            : base()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UnsupportedMediaTypeException"/> class with a specified error.
        /// </s

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