' Copyright (C) 2023 Andy https://github.com/AAndyProgram
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY
Namespace Plugin
''' Represents errors that occur during downloading to be thrown to the root downloading function.
Public Class ExitException : Inherits Exception
''' Add only the message to the log, without adding a . Default: .
''' if only the message should be added to the log; otherwise the stack trace will also be added.
Public Property SimpleLogLine As Boolean = True
''' Don't add a message to the log. Default: .
''' if the error is exit-only and there is no need to add a message to the log; otherwise add a message to the log.
Public Property Silent As Boolean = False
''' Initializes a new instance of the class.
Public Sub New()
End Sub
''' Initializes a new instance of the class with a specified error message.
''' The message that describes the error.
Public Sub New(ByVal Message As String)
MyBase.New(Message)
End Sub
'''
''' Initializes a new instance of the class with a specified error message
''' and a reference to the inner exception that is the cause of this exception.
'''
''' The error message that explains the reason for the exception.
''' The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
Public Sub New(ByVal Message As String, ByVal InnerException As Exception)
MyBase.New(Message, InnerException)
End Sub
End Class
End Namespace