-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support for backup & restore
- Loading branch information
Showing
8 changed files
with
150 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright (c) 2023, Siemens AG | ||
// | ||
// SPDX-License-Identifier: MIT | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Siemens.Simatic.S7.Webserver.API.Exceptions | ||
{ | ||
/// <summary> | ||
/// The PLC is not in operating mode stop. The method cannot be executed while the plc is not in stop mode. | ||
/// </summary> | ||
public class ApiPLCNotInStopException : Exception | ||
{ | ||
private static string message = "The PLC is not in operating mode stop. The method cannot be executed while the plc is not in stop mode."; | ||
/// <summary> | ||
/// The PLC is not in operating mode stop. The method cannot be executed while the plc is not in stop mode. | ||
/// </summary> | ||
/// <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> | ||
public ApiPLCNotInStopException(Exception innerException) : base(message, innerException) { } | ||
/// <summary> | ||
/// The PLC is not in operating mode stop. The method cannot be executed while the plc is not in stop mode. | ||
/// </summary> | ||
public ApiPLCNotInStopException() : base(message) { } | ||
|
||
/// <summary> | ||
/// The PLC is not in operating mode stop. The method cannot be executed while the plc is not in stop mode. | ||
/// </summary> | ||
/// <param name="userMessage">Further information about the error message that explains the reason for the exception.</param> | ||
public ApiPLCNotInStopException(string userMessage) : base(message + Environment.NewLine + userMessage) { } | ||
/// <summary> | ||
/// The PLC is not in operating mode stop. The method cannot be executed while the plc is not in stop mode. | ||
/// </summary> | ||
/// <param name="userMessage">Further information about 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> | ||
public ApiPLCNotInStopException(string userMessage, Exception innerException) : base(message + Environment.NewLine + userMessage, innerException) { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.