Skip to content

Commit bc120f4

Browse files
committed
Added: Missing Exception Constructors (Roslynator Fix)
1 parent 0ed11ef commit bc120f4

12 files changed

Lines changed: 70 additions & 9 deletions

src/Reloaded.Memory/Exceptions/MemoryAllocationException.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
33
namespace Reloaded.Memory.Exceptions;
44

55
/// <inheritdoc />
6+
[PublicAPI]
67
[ExcludeFromCodeCoverage]
78
public class MemoryAllocationException : Exception
89
{
10+
/// <inheritdoc />
11+
public MemoryAllocationException() { }
12+
913
/// <inheritdoc />
1014
public MemoryAllocationException(string message) : base(message) { }
15+
16+
/// <inheritdoc />
17+
public MemoryAllocationException(string message, Exception innerException) : base(message, innerException) { }
1118
}

src/Reloaded.Memory/Exceptions/MemoryException.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
33
namespace Reloaded.Memory.Exceptions;
44

55
/// <inheritdoc />
6+
[PublicAPI]
67
[ExcludeFromCodeCoverage]
78
public class MemoryException : Exception
89
{
10+
/// <inheritdoc />
11+
public MemoryException() { }
12+
913
/// <inheritdoc />
1014
public MemoryException(string message) : base(message) { }
15+
16+
/// <inheritdoc />
17+
public MemoryException(string message, Exception innerException) : base(message, innerException) { }
1118
}

src/Reloaded.Memory/Exceptions/MemoryPermissionException.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
33
namespace Reloaded.Memory.Exceptions;
44

55
/// <inheritdoc />
6+
[PublicAPI]
67
[ExcludeFromCodeCoverage]
78
public class MemoryPermissionException : Exception
89
{
10+
/// <inheritdoc />
11+
public MemoryPermissionException() { }
12+
913
/// <inheritdoc />
1014
public MemoryPermissionException(string message) : base(message) { }
15+
16+
/// <inheritdoc />
17+
public MemoryPermissionException(string message, Exception innerException) : base(message, innerException) { }
1118
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-

1+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException() -> void
2+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException(string! message, System.Exception! innerException) -> void
3+
Reloaded.Memory.Exceptions.MemoryException.MemoryException() -> void
4+
Reloaded.Memory.Exceptions.MemoryException.MemoryException(string! message, System.Exception! innerException) -> void
5+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException() -> void
6+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException(string! message, System.Exception! innerException) -> void
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-

1+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException() -> void
2+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException(string! message, System.Exception! innerException) -> void
3+
Reloaded.Memory.Exceptions.MemoryException.MemoryException() -> void
4+
Reloaded.Memory.Exceptions.MemoryException.MemoryException(string! message, System.Exception! innerException) -> void
5+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException() -> void
6+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException(string! message, System.Exception! innerException) -> void
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-

1+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException() -> void
2+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException(string! message, System.Exception! innerException) -> void
3+
Reloaded.Memory.Exceptions.MemoryException.MemoryException() -> void
4+
Reloaded.Memory.Exceptions.MemoryException.MemoryException(string! message, System.Exception! innerException) -> void
5+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException() -> void
6+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException(string! message, System.Exception! innerException) -> void
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-

1+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException() -> void
2+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException(string! message, System.Exception! innerException) -> void
3+
Reloaded.Memory.Exceptions.MemoryException.MemoryException() -> void
4+
Reloaded.Memory.Exceptions.MemoryException.MemoryException(string! message, System.Exception! innerException) -> void
5+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException() -> void
6+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException(string! message, System.Exception! innerException) -> void
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-

1+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException() -> void
2+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException(string! message, System.Exception! innerException) -> void
3+
Reloaded.Memory.Exceptions.MemoryException.MemoryException() -> void
4+
Reloaded.Memory.Exceptions.MemoryException.MemoryException(string! message, System.Exception! innerException) -> void
5+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException() -> void
6+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException(string! message, System.Exception! innerException) -> void
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-

1+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException() -> void
2+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException(string! message, System.Exception! innerException) -> void
3+
Reloaded.Memory.Exceptions.MemoryException.MemoryException() -> void
4+
Reloaded.Memory.Exceptions.MemoryException.MemoryException(string! message, System.Exception! innerException) -> void
5+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException() -> void
6+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException(string! message, System.Exception! innerException) -> void
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-

1+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException() -> void
2+
Reloaded.Memory.Exceptions.MemoryAllocationException.MemoryAllocationException(string! message, System.Exception! innerException) -> void
3+
Reloaded.Memory.Exceptions.MemoryException.MemoryException() -> void
4+
Reloaded.Memory.Exceptions.MemoryException.MemoryException(string! message, System.Exception! innerException) -> void
5+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException() -> void
6+
Reloaded.Memory.Exceptions.MemoryPermissionException.MemoryPermissionException(string! message, System.Exception! innerException) -> void

0 commit comments

Comments
 (0)