< Summary - Envilder .NET SDK

Information
Class: Envilder.ExpiredCredentialsException
Assembly: Envilder
File(s): /home/runner/work/envilder/envilder/src/sdks/dotnet/ExpiredCredentialsException.cs
Tag: 427_29134414720
Line coverage
25%
Covered lines: 2
Uncovered lines: 6
Coverable lines: 8
Total lines: 43
Line coverage: 25%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%210%
.ctor(...)100%210%
.ctor(...)100%11100%
.ctor(...)100%210%

File(s)

/home/runner/work/envilder/envilder/src/sdks/dotnet/ExpiredCredentialsException.cs

#LineLine coverage
 1namespace Envilder;
 2
 3using System;
 4
 5/// <summary>
 6/// Thrown when an AWS request fails because the credentials or security token
 7/// are expired or invalid (for example, an expired SSO session).
 8/// </summary>
 9public class ExpiredCredentialsException : Exception
 10{
 11  private const string RemediationMessage =
 12    "AWS credentials are expired or invalid. Your security token or SSO " +
 13    "session may have expired. Refresh your credentials and retry " +
 14    "(for SSO, run: aws sso login).";
 15
 16  /// <summary>Initializes a new instance with the default remediation message.</summary>
 17  public ExpiredCredentialsException()
 018    : base(RemediationMessage)
 19  {
 020  }
 21
 22  /// <summary>Initializes a new instance with a custom message.</summary>
 23  /// <param name="message">The error message.</param>
 24  public ExpiredCredentialsException(string message)
 025    : base(message)
 26  {
 027  }
 28
 29  /// <summary>Initializes a new instance wrapping the underlying AWS exception.</summary>
 30  /// <param name="innerException">The original AWS SDK exception.</param>
 31  public ExpiredCredentialsException(Exception innerException)
 132    : base(RemediationMessage, innerException)
 33  {
 134  }
 35
 36  /// <summary>Initializes a new instance with a custom message and inner exception.</summary>
 37  /// <param name="message">The error message.</param>
 38  /// <param name="innerException">The original AWS SDK exception.</param>
 39  public ExpiredCredentialsException(string message, Exception innerException)
 040    : base(message, innerException)
 41  {
 042  }
 43}