Skip to content

Commit f74ca27

Browse files
committed
Make exception classes public
Minor code changes. Make exception classes public as they are exposed in the IService interface for use.
1 parent 8bf9801 commit f74ca27

15 files changed

Lines changed: 58 additions & 78 deletions

Code/Sif3Framework/Sif.Framework/Controllers/SifController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using Sif.Framework.Model.Persistence;
1818
using Sif.Framework.Service;
1919
using Sif.Framework.Service.Authentication;
20+
using Sif.Framework.Service.Infrastructure;
2021
using System;
2122
using System.Collections.Generic;
2223
using System.Net;
@@ -45,7 +46,7 @@ public abstract class SifController<UI, DB> : ApiController
4546
public SifController(ISifService<UI, DB> service)
4647
{
4748
this.service = service;
48-
authService = new DirectAuthenticationService();
49+
authService = new DirectAuthenticationService(new ApplicationRegisterService(), new EnvironmentService());
4950
}
5051

5152
/// <summary>

Code/Sif3Framework/Sif.Framework/Model/Exceptions/AlreadyExistsException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015 Systemic Pty Ltd
2+
* Copyright 2016 Systemic Pty Ltd
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ namespace Sif.Framework.Model.Exceptions
2424
/// This exception represents the situation where an item already exists.
2525
/// </summary>
2626
[Serializable]
27-
class AlreadyExistsException : BaseException
27+
public class AlreadyExistsException : BaseException
2828
{
2929

3030
/// <summary>

Code/Sif3Framework/Sif.Framework/Model/Exceptions/BaseException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015 Systemic Pty Ltd
2+
* Copyright 2016 Systemic Pty Ltd
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ namespace Sif.Framework.Model.Exceptions
2424
/// This class represents the base class for customised exceptions.
2525
/// </summary>
2626
[Serializable]
27-
class BaseException : Exception
27+
public abstract class BaseException : Exception
2828
{
2929
private string exceptionReference;
3030

Code/Sif3Framework/Sif.Framework/Model/Exceptions/ContentTooLargeException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Sif.Framework.Model.Exceptions
2424
/// This exception represents the situation where the message content is too large.
2525
/// </summary>
2626
[Serializable]
27-
class ContentTooLargeException : BaseException
27+
public class ContentTooLargeException : BaseException
2828
{
2929

3030
/// <summary>

Code/Sif3Framework/Sif.Framework/Model/Exceptions/CreateException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Sif.Framework.Model.Exceptions
2424
/// This exception represents an error from a create request.
2525
/// </summary>
2626
[Serializable]
27-
class CreateException : BaseException
27+
public class CreateException : BaseException
2828
{
2929

3030
/// <summary>

Code/Sif3Framework/Sif.Framework/Model/Exceptions/DeleteException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Sif.Framework.Model.Exceptions
2424
/// This exception represents an error from a delete request.
2525
/// </summary>
2626
[Serializable]
27-
class DeleteException : BaseException
27+
public class DeleteException : BaseException
2828
{
2929

3030
/// <summary>

Code/Sif3Framework/Sif.Framework/Model/Exceptions/NotFoundException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Sif.Framework.Model.Exceptions
2424
/// This exception represents the situation where an item cannot be found.
2525
/// </summary>
2626
[Serializable]
27-
class NotFoundException : BaseException
27+
public class NotFoundException : BaseException
2828
{
2929

3030
/// <summary>

Code/Sif3Framework/Sif.Framework/Model/Exceptions/QueryException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Sif.Framework.Model.Exceptions
2424
/// This exception represents an error from a query request.
2525
/// </summary>
2626
[Serializable]
27-
class QueryException : BaseException
27+
public class QueryException : BaseException
2828
{
2929

3030
/// <summary>

Code/Sif3Framework/Sif.Framework/Model/Exceptions/RejectedException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Sif.Framework.Model.Exceptions
2424
/// This exception represents the situation where a requested action or operation is rejected.
2525
/// </summary>
2626
[Serializable]
27-
class RejectedException : BaseException
27+
public class RejectedException : BaseException
2828
{
2929

3030
/// <summary>

Code/Sif3Framework/Sif.Framework/Model/Exceptions/UpdateException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Sif.Framework.Model.Exceptions
2424
/// This exception represents an error from an update request.
2525
/// </summary>
2626
[Serializable]
27-
class UpdateException : BaseException
27+
public class UpdateException : BaseException
2828
{
2929

3030
/// <summary>

0 commit comments

Comments
 (0)