You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
usingSystem;
namespaceCake.Core
{
/// <summary>
/// Represent errors that occur during script execution.
/// </summary>
publicsealedclassCakeException:Exception
{
/// <summary>
/// Gets custom exit code.
/// </summary>
publicintExitCode{get;}=1;
/// <summary>
/// Initializes a new instance of the <see cref="CakeException"/> class.
/// </summary>
publicCakeException()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="CakeException"/> class.
/// </summary>
/// <param name="message">The message that describes the error.</param>
publicCakeException(stringmessage)
:base(message)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="CakeException"/> class.
/// </summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
/// <param name="message">The error message that explains the reason for the exception.</param>
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>