reorg
This commit is contained in:
parent
d000f77098
commit
40e8e08690
3487 changed files with 39 additions and 21 deletions
17
src/Yavsc.Server/Exceptions/AuthorizationFailureException.cs
Normal file
17
src/Yavsc.Server/Exceptions/AuthorizationFailureException.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
namespace Yavsc.Server.Exceptions;
|
||||
|
||||
[Serializable]
|
||||
public class AuthorizationFailureException : Exception
|
||||
{
|
||||
public AuthorizationFailureException(Microsoft.AspNetCore.Authorization.AuthorizationResult auth) : base(auth?.Failure?.ToString()??auth?.ToString()??"AuthorizationResult failure")
|
||||
{
|
||||
}
|
||||
|
||||
public AuthorizationFailureException(string? message) : base(message)
|
||||
{
|
||||
}
|
||||
|
||||
public AuthorizationFailureException(string? message, Exception? innerException) : base(message, innerException)
|
||||
{
|
||||
}
|
||||
}
|
||||
15
src/Yavsc.Server/Exceptions/InvalidActivityModelException.cs
Normal file
15
src/Yavsc.Server/Exceptions/InvalidActivityModelException.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
namespace Yavsc.Exceptions
|
||||
{
|
||||
public class InvalidWorkflowModelException : Exception
|
||||
{
|
||||
public InvalidWorkflowModelException(string descr) : base(descr)
|
||||
{
|
||||
|
||||
}
|
||||
public InvalidWorkflowModelException(string descr, Exception inner) : base(descr,inner)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
9
src/Yavsc.Server/Exceptions/InvalidPathException.cs
Normal file
9
src/Yavsc.Server/Exceptions/InvalidPathException.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
using System;
|
||||
|
||||
namespace Yavsc.Exceptions
|
||||
{
|
||||
public class InvalidPathException: Exception
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
18
src/Yavsc.Server/Exceptions/YavscInfrastructureException.cs
Normal file
18
src/Yavsc.Server/Exceptions/YavscInfrastructureException.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
namespace Yavsc.Services
|
||||
{
|
||||
[Serializable]
|
||||
internal class YavscInfrastructureException : Exception
|
||||
{
|
||||
public YavscInfrastructureException()
|
||||
{
|
||||
}
|
||||
|
||||
public YavscInfrastructureException(string? message) : base(message)
|
||||
{
|
||||
}
|
||||
|
||||
public YavscInfrastructureException(string? message, Exception? innerException) : base(message, innerException)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue