// Copyright Keysight Technologies 2012-2019
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at http://mozilla.org/MPL/2.0/.
using System;
namespace OpenTap.Cli
{
///
/// Thrown from to set a specific exit code
///
public class ExitCodeException : Exception
{
///
/// Exit code to set when ending the process.
///
public int ExitCode { get; private set; }
///
/// Instantiates a new
///
/// Exit code to set when ending the process
/// Exception message to print in the log
public ExitCodeException(int exitcode, string message) : base(message)
{
ExitCode = exitcode;
}
}
}