| 123456789101112131415161718192021222324252627282930 |
- //-------------------------------------------------------------------------------------------------------
- // 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)];
- }
- };
- }
|