blob: 51ce8d9a4e082b5ce581cd49f29ff2fd690d5ca7 [file]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#pragma once
namespace Js
{
class RejitException : public ExceptionBase
{
private:
const RejitReason reason;
public:
RejitException(const RejitReason reason) : reason(reason)
{
}
public:
RejitReason Reason() const
{
return reason;
}
const char *ReasonName() const
{
return RejitReasonNames[static_cast<byte>(reason)];
}
};
}