correct naming of `Socialvoid` in files, directories and namespaces.

Signed-off-by: Aliwoto <aminnimaj@gmail.com>
This commit is contained in:
Aliwoto 2021-09-07 08:40:45 +00:00
parent bc61768397
commit 936f7e2663
No known key found for this signature in database
GPG Key ID: 646B4FE4205EC48C
54 changed files with 25 additions and 3501 deletions

View File

@ -1,5 +1,5 @@
# This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
# Copyright (c) 2021 SocialVoid.NET Authors.
# This file is part of Socialvoid.NET Project (https://github.com/Intellivoid/Socialvoid.NET).
# Copyright (c) 2021 Socialvoid.NET Authors.
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -17,7 +17,7 @@
version: 2
updates:
- package-ecosystem: nuget
directory: "/SocialVoid"
directory: "/Socialvoid"
schedule:
interval: daily
time: "15:00"

4
.github/stale.yml vendored
View File

@ -1,5 +1,5 @@
# This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
# Copyright (c) 2021 SocialVoid.NET Authors.
# This file is part of Socialvoid.NET Project (https://github.com/Intellivoid/Socialvoid.NET).
# Copyright (c) 2021 Socialvoid.NET Authors.
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

View File

@ -1,5 +1,5 @@
# This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
# Copyright (c) 2021 SocialVoid.NET Authors.
# This file is part of Socialvoid.NET Project (https://github.com/Intellivoid/Socialvoid.NET).
# Copyright (c) 2021 Socialvoid.NET Authors.
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

View File

@ -1,5 +1,5 @@
# This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
# Copyright (c) 2021 SocialVoid.NET Authors.
# This file is part of Socialvoid.NET Project (https://github.com/Intellivoid/Socialvoid.NET).
# Copyright (c) 2021 Socialvoid.NET Authors.
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

View File

@ -1,6 +1,6 @@
<!--
This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
Copyright (c) 2021 SocialVoid.NET Authors.
This file is part of Socialvoid.NET Project (https://github.com/Intellivoid/Socialvoid.NET).
Copyright (c) 2021 Socialvoid.NET Authors.
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -17,10 +17,10 @@
-->
> #### NOTE: This code style standard for SocialVoid.NET is a work in progress and much of the code does not currently conform to these rules. This is something that will be addressed by the core team.
> #### NOTE: This code style standard for Socialvoid.NET is a work in progress and much of the code does not currently conform to these rules. This is something that will be addressed by the core team.
# Introduction
As the SocialVoid.NET project gains more traction and becomes more widely used, we aim to provide a more professional and consistent look to the large amount of source now in the project. It was a broadly supported decision by the core development team to follow the Microsoft coding guidelines (the default provided in Visual Studio's C# editor). These coding guidelines listed below are based on a [MSDN blog post](http://blogs.msdn.com/b/brada/archive/2005/01/26/361363.aspx) from 2005 by Brad Abrams describing the internal coding guidelines at Microsoft, with some changes to suit our project.
As the Socialvoid.NET project gains more traction and becomes more widely used, we aim to provide a more professional and consistent look to the large amount of source now in the project. It was a broadly supported decision by the core development team to follow the Microsoft coding guidelines (the default provided in Visual Studio's C# editor). These coding guidelines listed below are based on a [MSDN blog post](http://blogs.msdn.com/b/brada/archive/2005/01/26/361363.aspx) from 2005 by Brad Abrams describing the internal coding guidelines at Microsoft, with some changes to suit our project.
# Coding Guidelines
## Tabs & Indenting
@ -117,8 +117,8 @@ Comments must provide added value or explanation to the code. Simply describing
Each file **should** start with a copyright notice. This is a short statement declaring the project name and copyright notice, and directing the reader to the license document elsewhere in the project. To avoid errors in doc comment builds, avoid using triple-slash doc comments.
```csharp
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
* This file is part of Socialvoid.NET Project (https://github.com/Intellivoid/Socialvoid.NET).
* Copyright (c) 2021 Socialvoid.NET Authors.
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -254,7 +254,7 @@ In addition, the goal is to have clean, readable source. Code legibility should
## File Organization
* Source files should contain only one public type, although multiple internal types are permitted if required.
* Source files should be given the name of the public type in the file.
* Directory names should follow the namespace for the class after `SocialVoid`. For example, one would expect to find the public class `SocialVoid.Constants.WotoTools` in **SocialVoid\Constants\WotoTools.cs**.
* Directory names should follow the namespace for the class after `Socialvoid`. For example, one would expect to find the public class `Socialvoid.Constants.WotoTools` in **Socialvoid\Constants\WotoTools.cs**.
* Class members should be grouped logically, and encapsulated into regions:
```csharp

View File

@ -1 +1 @@
# SocialVoid.NET
# Socialvoid.NET

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 KiB

View File

@ -1,22 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SocialVoid", "SocialVoid\SocialVoid.csproj", "{6CB5C21A-EB16-48D6-B98A-F18D7CE46785}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBD}") = "Tests", "Tests\Tests.csproj", "{2EFF7FAB-7794-4BFA-AB48-998ADADC45A9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6CB5C21A-EB16-48D6-B98A-F18D7CE46785}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6CB5C21A-EB16-48D6-B98A-F18D7CE46785}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6CB5C21A-EB16-48D6-B98A-F18D7CE46785}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6CB5C21A-EB16-48D6-B98A-F18D7CE46785}.Release|Any CPU.Build.0 = Release|Any CPU
{2EFF7FAB-7794-4BFA-AB48-998ADADC45A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2EFF7FAB-7794-4BFA-AB48-998ADADC45A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2EFF7FAB-7794-4BFA-AB48-998ADADC45A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2EFF7FAB-7794-4BFA-AB48-998ADADC45A9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

View File

@ -1,22 +0,0 @@
using SocialVoid.Methods;
namespace SocialVoid.Client
{
class SocialvoidClient
{
public string PUB_HASH, PVT_HASH, SOCIALVOID_PLATFORM, SOCIALVOID_VERSION;
public SocialvoidClient(string public_hash, string private_hash, string platform, string version)
{
PUB_HASH = public_hash;
PVT_HASH = private_hash;
SOCIALVOID_PLATFORM = platform;
SOCIALVOID_VERSION = version;
bool createsession()
{
return Methods.CreateSession.Do(PUB_HASH, PVT_HASH, SOCIALVOID_PLATFORM, SOCIALVOID_VERSION);
}
}
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the client is attempting
/// to authenticate when already authenticated.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class AlreadyAuthenticatedException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.AlreadyAuthenticated"/> error code
/// will be returned because the client is attempting to
/// authenticate while it's already authenticated.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.AlreadyAuthenticated;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="AlreadyAuthenticatedException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal AlreadyAuthenticatedException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,88 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the authentication process failed
/// for some unexpected reason; you need to see the exception message
/// for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class AuthenticationFailureException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.AuthenticationFailure"/> error code
/// will be returned because the authentication process failed
/// for some unexpected reason;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.AuthenticationFailure;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of
/// <see cref="AuthenticationFailureException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal AuthenticationFailureException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,87 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the user does not support
/// this method of authentication;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class AuthenticationNotApplicableException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.AuthenticationNotApplicable"/> error code
/// will be returned because the user does not support this method
/// of authentication; please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.AuthenticationNotApplicable;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of
/// <see cref="AuthenticationNotApplicableException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal AuthenticationNotApplicableException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the given session challenge answer
/// is incorrect or out of sync.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class BadSessionChallengeAnswerException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.BadSessionChallengeAnswer"/> error code
/// will be returned because the given session challenge answer
/// is incorrect or out of sync.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.BadSessionChallengeAnswer;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="BadSessionChallengeAnswerException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal BadSessionChallengeAnswerException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,84 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the given login credentials
/// are incorrect.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class IncorrectLoginCredentialsException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.IncorrectLoginCredentials"/> error code
/// will be returned because the given login credentials are incorrect.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.IncorrectLoginCredentials;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="IncorrectLoginCredentialsException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal IncorrectLoginCredentialsException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,86 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the given two-factor
/// authentication code is incorrect.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class IncorrectTwoFactorAuthenticationCodeException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.IncorrectTwoFactorAuthenticationCode"/> error code
/// will be returned because the given two-factor authentication code
/// is incorrect.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.IncorrectTwoFactorAuthenticationCode;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of
/// <see cref="IncorrectTwoFactorAuthenticationCodeException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal IncorrectTwoFactorAuthenticationCodeException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the client attempts to
/// invoke a method that requires authentication.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class NotAuthenticatedException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.NotAuthenticated"/> error code
/// will be returned because the client attempts
/// to invoke a method that requires authentication.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.NotAuthenticated;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="NotAuthenticatedException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal NotAuthenticatedException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,88 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the user/entity uses a
/// Private Access Token to authenticate and the client attempted
/// to authenticate in another way.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class PrivateAccessTokenRequiredException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.PrivateAccessTokenRequired"/> error code
/// will be returned because the user/entity uses a
/// Private Access Token to authenticate and the client attempted
/// to authenticate in another way.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.PrivateAccessTokenRequired;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of
/// <see cref="PrivateAccessTokenRequiredException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal PrivateAccessTokenRequiredException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,19 +0,0 @@
# Authentication Errors
These errors are raised when anything related to authentication has failed,
this can include things from when trying to authenticate to session
challenge errors.
| Name | Code | Hex Code | Deprecated | Versions | Description |
|--------------------------------------|------|----------|------------|----------|--------------------------------------------------------------------------------------------------------------------------------------|
| IncorrectLoginCredentials | 8704 | 0x02200 | No | 1.0 | The given login credentials are incorrect |
| IncorrectTwoFactorAuthenticationCode | 8705 | 0x02201 | No | 1.0 | The given two-factor authentication code is incorrect |
| AuthenticationNotApplicable | 8706 | 0x02202 | No | 1.0 | Raised when the user does not support this method of authentication, see the message for further details |
| SessionNotFound | 8707 | 0x02203 | No | 1.0 | Raised when the requested session was not found in the network |
| NotAuthenticated | 8708 | 0x02204 | No | 1.0 | Raised when the client attempts to invoke a method that requires authentication |
| PrivateAccessTokenRequired | 8709 | 0x02205 | No | 1.0 | Raised when the user/entity uses a Private Access Token to authenticate and the client attempted to authenticate in another way. |
| AuthenticationFailure | 8710 | 0x02206 | No | 1.0 | The authentication process failed for some unexpected reason, see the message for further details. |
| BadSessionChallengeAnswer | 8711 | 0x02207 | No | 1.0 | The given session challenge answer is incorrect or out of sync. |
| TwoFactorAuthenticationRequired | 8712 | 0x02208 | No | 1.0 | Two-Factor Authentication is required, the client must repeat the same request but provide a Two-Factor authentication code as well. |
| AlreadyAuthenticated | 8713 | 0x02209 | No | 1.0 | The client is attempting to authenticate when already authenticated |
| SessionExpired | 8714 | 0x0220a | No | 1.0 | Raised when trying to use a session that has expired |

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the client tried to use a session
/// that has been expired.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class SessionExpiredException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.SessionExpired"/> error code
/// will be returned because the client tried to use a session
/// that has been expired.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.SessionExpired;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="SessionExpiredException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal SessionExpiredException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the requested session can
/// not be found in the database on server-side.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class SessionNotFoundException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidUsername"/> error code
/// will be returned because the requested session was
/// not found in the database on server-side.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.SessionNotFound;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="SessionNotFoundException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal SessionNotFoundException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,87 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the Two-Factor Authentication
/// is required and so the client must repeat the same request
/// but provide a Two-Factor authentication code as well.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class TwoFactorAuthenticationRequiredException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.TwoFactorAuthenticationRequired"/>
/// error code will be returned because the Two-Factor Authentication
/// is required and so the client must repeat the same request
/// but provide a Two-Factor authentication code as well.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.TwoFactorAuthenticationRequired;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="TwoFactorAuthenticationRequiredException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal TwoFactorAuthenticationRequiredException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,273 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors
{
/// <summary>
/// All error codes received from the SocialVoid servers.
/// <code> Since: v0.0.0 </code>
/// </summary>
public enum ErrorCodes
{
//-------------------------------------------------
#region Unknown Error
/// <summary>
/// This error code will be returned when the error is not
/// implimented on client-side at all.
/// <code> Since: v0.0.0 </code>
/// </summary>
UnknownError = 0,
#endregion
//-------------------------------------------------
#region Validation Errors
/// <summary>
/// This error code will be returned when the given username
/// is invalid and does not meet the specification.
/// <code> Since: v0.0.0 </code>
/// <!--
/// These are errors raised when the client passes
/// on parameters or data that is invalid in some way or another.
/// -->
/// </summary>
InvalidUsername = 8448,
/// <summary>
/// This error code will be returned when the given password is
/// invalid and/or insecure and does not meet the specification.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidPassword = 8449,
/// <summary>
/// This error code will be returned when the First Name provided
/// contains invalid characters and or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidFirstName = 8450,
/// <summary>
/// This error code will be returned when the Last Name provided
/// contains invalid characters and or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidLastName = 8451,
/// <summary>
/// This error code will be returned when the Biography is too long or
/// contains invalid characters;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidBiography = 8452,
/// <summary>
/// This error code will be returned when the given username
/// is already registered in the server and cannot be used.
/// <code> Since: v0.0.0 </code>
/// </summary>
UsernameAlreadyExists = 8453,
/// <summary>
/// This error code will be returned when the client provided
/// an invalid peer identification as input.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidPeerInput = 8454,
/// <summary>
/// This error code will be returned when the post contains
/// invalid characters or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidPostText = 8455,
/// <summary>
/// This error code will be returned when the client's public hash
/// is invalid and cannot be identified as a sha256.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidClientPublicHash = 8456,
/// <summary>
/// This error code will be returned when the client's private hash
/// is invalid and cannot be identified as a sha256.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidClientPrivateHash = 8457,
/// <summary>
/// This error code will be returned when the version is invalid
/// or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidVersion = 8459,
/// <summary>
/// This error code will be returned when the client name contains
/// invalid characters or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidClientName = 8460,
/// <summary>
/// This error code will be returned when the session identification
/// object is invalid;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidSessionIdentification = 8461,
/// <summary>
/// This error code will be returned when the platform name contains
/// invalid characters or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
InvalidPlatform = 8464,
#endregion
//-------------------------------------------------
#region Authentication Errors
/// <summary>
/// This error code will be returned when the given login credentials
/// are incorrect.
/// <code> Since: v0.0.0 </code>
/// <!--
/// These errors are raised when anything related to authentication
/// has failed, this can include things from when trying
/// to authenticate to session challenge errors.
/// -->
/// </summary>
IncorrectLoginCredentials = 8704,
/// <summary>
/// This error code will be returned when the given two-factor
/// authentication code is incorrect.
/// <code> Since: v0.0.0 </code>
/// </summary>
IncorrectTwoFactorAuthenticationCode = 8705,
/// <summary>
/// This error code will be returned when the user does not support
/// this method of authentication;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
AuthenticationNotApplicable = 8706,
/// <summary>
/// This error code will be returned when the requested session
/// was not found in the database on server-side.
/// <code> Since: v0.0.0 </code>
/// </summary>
SessionNotFound = 8707,
/// <summary>
/// This error code will be returned when the client attempts
/// to invoke a method that requires authentication.
/// <code> Since: v0.0.0 </code>
/// </summary>
NotAuthenticated = 8708,
/// <summary>
/// This error code will be returned when the user/entity uses
/// a Private Access Token to authenticate and the client
/// attempted to authenticate in another way.
/// <code> Since: v0.0.0 </code>
/// </summary>
PrivateAccessTokenRequired = 8709,
/// <summary>
/// This error code will be returned when the authentication process
/// failed for some unexpected reason;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
AuthenticationFailure = 8710,
/// <summary>
/// This error code will be returned when the given session
/// challenge answer is incorrect or out of sync.
/// <code> Since: v0.0.0 </code>
/// </summary>
BadSessionChallengeAnswer = 8711,
/// <summary>
/// This error code will be returned when the Two-Factor
/// Authentication is required and so the client must repeat
/// the same request but provide a Two-Factor authentication
/// code as well.
/// <code> Since: v0.0.0 </code>
/// </summary>
TwoFactorAuthenticationRequired = 8712,
/// <summary>
/// This error code will be returned when the client is attempting
/// to authenticate when already authenticated.
/// <code> Since: v0.0.0 </code>
/// </summary>
AlreadyAuthenticated = 8713,
/// <summary>
/// This error code will be returned when trying to use a
/// session that has been expired.
/// <code> Since: v0.0.0 </code>
/// </summary>
SessionExpired = 8714,
#endregion
//-------------------------------------------------
#region Media Errors
// TODO: This part is a work in progress,
// media has yet to be implemented on the server-side.
#endregion
//-------------------------------------------------
#region Network Errors
/// <summary>
/// This error code will be returned when the requested user entity
/// was not found on the server-side.
/// <code> Since: v0.0.0 </code>
/// <!--
/// These are the catch-all errors when dealing with the network, from
/// finding peers, following them, posting, etc...
/// -->
/// </summary>
PeerNotFound = 12544,
/// <summary>
/// This error code will be returned when the client requested
/// a post that isn't found (or does not exist on the server-side).
/// <code> Since: v0.0.0 </code>
/// </summary>
PostNotFound = 12545,
/// <summary>
/// This error code will be returned when the client requested a post
/// that was deleted.
/// <code> Since: v0.0.0 </code>
/// </summary>
PostDeleted = 12546,
/// <summary>
/// This error code will be returned when the client attempts to
/// repost a post that has already been reposted (by the same user).
/// <code> Since: v0.0.0 </code>
/// </summary>
AlreadyReposted = 12547,
/// <summary>
/// This error code will be returned when there was an error while
/// trying to upload one or more files to the server.
/// <code> Since: v0.0.0 </code>
/// </summary>
FileUploadError = 12548,
#endregion
//-------------------------------------------------
#region Server Errors
/// <summary>
/// This error code will be returned when there was an unexpected
/// error while trying to process your request.
/// <code> Since: v0.0.0 </code>
/// <!--
/// These error codes are usually returned as a last resort
/// when something is wrong with the server.
/// -->
/// </summary>
InternalServerError = 16384,
#endregion
//-------------------------------------------------
}
}

View File

@ -1,203 +0,0 @@
using System;
using SocialVoid.Errors.ServerErrors;
using SocialVoid.Errors.NetworkErrors;
using SocialVoid.Errors.ValidationErrors;
namespace SocialVoid.Errors
{
/// <summary>
///
/// <code> Since: v0.0.0 </code>
/// </summary>
public class GeneralException : Exception
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The error code of this exception which is received from
/// the server.
/// <devdoc>
/// This property needs to be overrided in specific exception
/// classes of this library.
/// </devdoc>
/// <code> Since: v0.0.0 </code>
/// </summary>
public virtual ErrorCodes ErrorCode { get; }
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="GeneralException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
/// <param name="message">
/// the error message received from the server.
/// </param>
internal GeneralException(string message) : base(message)
{
}
/// <summary>
/// Creates a new instance of <see cref="GeneralException"/> using
/// the specified error message and erro code.
/// <code> Since: v0.0.0 </code>
/// </summary>
/// <param name="message">
/// the error message received from the server.
/// </param>
/// <param name="code">
/// the error code received from the server.
/// </param>
private GeneralException(string message, ErrorCodes code) : base(message)
{
ErrorCode = code;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
#region Initialize Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region Graphical Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region event Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region overrided Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region ordinary Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region Get Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region Set Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region static Method's Region
/// <summary>
/// GetException will return a new exception based on the
/// error code received from the server with the specified
/// error message.
/// <code> Since: v0.0.0 </code>
/// </summary>
public static GeneralException GetException(string m, ErrorCodes err)
{
return err switch
{
// Unknown Error
ErrorCodes.UnknownError => new(m),
// Validation Errors
ErrorCodes.InvalidUsername =>
new InvalidUsernameException(m),
ErrorCodes.InvalidPassword =>
new InvalidPasswordException(m),
ErrorCodes.InvalidFirstName =>
new InvalidFirstNameException(m),
ErrorCodes.InvalidLastName =>
new InvalidLastNameException(m),
ErrorCodes.InvalidBiography =>
new InvalidBiographyException(m),
ErrorCodes.UsernameAlreadyExists =>
new UsernameAlreadyExistsException(m),
ErrorCodes.InvalidPeerInput =>
new InvalidPeerInputException(m),
ErrorCodes.InvalidPostText =>
new InvalidPostTextException(m),
ErrorCodes.InvalidClientPublicHash =>
new InvalidClientPublicHashException(m),
ErrorCodes.InvalidClientPrivateHash =>
new InvalidClientPrivateHashException(m),
ErrorCodes.InvalidVersion =>
new InvalidVersionException(m),
ErrorCodes.InvalidClientName =>
new InvalidClientNameException(m),
ErrorCodes.InvalidSessionIdentification =>
new InvalidSessionIdentificationException(m),
ErrorCodes.InvalidPlatform =>
new InvalidPlatformException(m),
// Authentication Errors
ErrorCodes.IncorrectLoginCredentials =>
new IncorrectLoginCredentialsException(m),
ErrorCodes.IncorrectTwoFactorAuthenticationCode =>
new IncorrectTwoFactorAuthenticationCodeException(m),
ErrorCodes.AuthenticationNotApplicable =>
new AuthenticationNotApplicableException(m),
ErrorCodes.SessionNotFound =>
new SessionNotFoundException(m),
ErrorCodes.NotAuthenticated =>
new NotAuthenticatedException(m),
ErrorCodes.PrivateAccessTokenRequired =>
new PrivateAccessTokenRequiredException(m),
ErrorCodes.AuthenticationFailure =>
new AuthenticationFailureException(m),
ErrorCodes.BadSessionChallengeAnswer =>
new BadSessionChallengeAnswerException(m),
ErrorCodes.TwoFactorAuthenticationRequired =>
new TwoFactorAuthenticationRequiredException(m),
ErrorCodes.AlreadyAuthenticated =>
new AlreadyAuthenticatedException(m),
ErrorCodes.SessionExpired =>
new SessionExpiredException(m),
// Media Errors
// Network Errors
ErrorCodes.PeerNotFound =>
new PeerNotFoundException(m),
ErrorCodes.PostNotFound =>
new PostNotFoundException(m),
ErrorCodes.PostDeleted =>
new PostDeletedException(m),
ErrorCodes.AlreadyReposted =>
new AlreadyRepostedException(m),
ErrorCodes.FileUploadError =>
new FileUploadErrorException(m),
// Server Errors
ErrorCodes.InternalServerError =>
new InternalServerErrorException(m),
// an unknown error code?
_ => new(m, err)
};
}
#endregion
//-------------------------------------------------
}
}

View File

@ -1,3 +0,0 @@
# MediaErrors
This part is a work in progress, media has yet to be implemented.

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the client attempts to repost a
/// post that has already been reposted (by the same user).
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class AlreadyRepostedException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.AlreadyReposted"/> error code
/// will be returned because the client attempted to repost a
/// post that has already been reposted (by the same user).
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.AlreadyReposted;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="AlreadyRepostedException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal AlreadyRepostedException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when there was an error while trying to
/// upload one or more files to the server.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class FileUploadErrorException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.FileUploadError"/> error code
/// will be returned because there was an error while trying to
/// upload one or more files to the server.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.FileUploadError;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="FileUploadErrorException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal FileUploadErrorException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the requested user entity
/// can not be not found on the server-side.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class PeerNotFoundException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.PeerNotFound"/> error code
/// will be returned because the requested user entity was not found
/// on the server-side.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.PeerNotFound;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="AlreadyRepostedException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal PeerNotFoundException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the client requests a post that
/// is deleted.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class PostDeletedException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.PostDeleted"/> error code
/// will be returned because the client requested a post that
/// was deleted.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.PostDeleted;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="PostDeletedException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal PostDeletedException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.NetworkErrors
{
/// <summary>
/// This exception will be raised when the client requests a post that
/// isn't found (or does not exist on the server-side).
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class PostNotFoundException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidUsername"/> error code
/// will be returned because the client requested a post that
/// isn't found (or does not exist on the server-side).
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.PostNotFound;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="PostNotFoundException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal PostNotFoundException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,12 +0,0 @@
# NetworkErrors
These are the catch-all errors when dealing with the network, from
finding peers, following them, posting, etc.
| Name | Code | Hex Code | Deprecated | Versions | Description |
|-----------------|-------|----------|------------|----------|----------------------------------------------------------------------------------------|
| PeerNotFound | 12544 | 0x03100 | No | 1.0 | The requested user entity was not found in the network |
| PostNotFound | 12545 | 0x03101 | No | 1.0 | Raised when the client requested a post that isn't found |
| PostDeleted | 12546 | 0x03102 | No | 1.0 | Raised when the client requested a post that was deleted |
| AlreadyReposted | 12547 | 0x03103 | No | 1.0 | Raised when the client attempts to repost a post that has already been reposted |
| FileUploadError | 12548 | 0x03104 | No | 1.0 | Raised when there was an error while trying to upload one or more files to the network |

View File

@ -1,61 +0,0 @@
# Errors
Socialvoid has it's own unique set of error codes aside from the ones
used by the standard of the RCP server. while your client should handle
standard error codes of the RCP protcol; if you are building a Socialvoid
client then it's important that your client can handle and represent these
errors returned by the Socialvoid Server.
These errors are designed to explain what the issue is to the client or
user, in cases the client use these errors to automatically correct their
request but some errors may be caused by users as well. so it's important
that your client can understand and catch these errors accordingly.
## Error Codes
Errors come in three components.
- Name
- Code
- Message
### Name
The name is the name of the error, it can be anything from `PeerNotFound`
to `InternalServerError`, this makes it easier for programming languages
to use a try catch statement to catch specific errors.
### Code
The error code is an alternative way to identify the error when the
name is not available or trying to catch a wide range of specific errors.
These are usually represented in integers.
### Message
A message explains more details about the error, while the same error
can occur for Situation A and B; Situation B may have a different reason
for the same error. This should not be used as a way to identify the error
and usually serves the purpose of troubleshooting or displaying the error
to the user.
--------------------------------------------------------------------------
## Error Types
Errors are split into sections to make it more easier to manage, you can
either identify errors indivdually by their error code or by range.
| Section | Set | Range | Description |
|-----------------------|-----|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Validation Errors | 21 | 8448 - 8703 | Errors that returns when the given parameters or data is invalid in some way or another |
| Authentication Errors | 22 | 8704 - 8979 | Errors related to authentication/session management, these errors are usually returned when there was an error while trying to authenticate or there are session errors such as the session being expired. |
| Media Errors | 23 | 8960 - 12543 | Errors related to the media on the network, errors are usually returned if your client uploads bad media files or for some reason there is an error related to the media content on the network. |
| Network Errors | 31 | 12544 - 16383 | Errors related to actions on the network, peers not being found, posts not being found, incorrect permissions, rate limits, etc. |
| Server Errors | 40 | 16384 - *(?) | Errors related to the server, unexpected errors, servers related to administrators/moderators performing administrative tasks on the server |
## Error Codes
- [Validation Errors](ValidationErrors.md) 8448 - 8703
- [Authentication Errors](AuthenticationErrors.md) 8704 - 8979
- [Media Errors](MediaErrors.md) 8960 - 12543
- [Network Errors](NetworkErrors.md) 12544 - 16383
- [Server Errors](ServerErrors.md) 16384 - *(?)

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ServerErrors
{
/// <summary>
/// This exception will be raised when there is an unexpected error
/// while server tried to process our request.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InternalServerErrorException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InternalServerError"/> error code
/// will be returned because there was an unexpected error
/// while trying to process your request.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InternalServerError;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InternalServerErrorException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InternalServerErrorException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,8 +0,0 @@
# ServerErrors
These errors are usually rasied as a last resort when something is wrong
with the server.
| Name | Code | Hex Code | Deprecated | Versions | Description |
|---------------------|-------|----------|------------|----------|---------------------------------------------------------------------------------|
| InternalServerError | 16384 | 0x04000 | No | 1.0 | Raised when there was an unexpected error while trying to process your request. |

View File

@ -1,87 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the Biography is too long
/// or contains invalid characters;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidBiographyException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidBiography"/> error code
/// will be returned because the Biography is too long
/// or contains invalid characters;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidBiography;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InvalidBiographyException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidBiographyException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,87 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the client name contains invalid
/// characters or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidClientNameException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidClientName"/> error code
/// will be returned because the client name contains invalid
/// characters or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidClientName;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InvalidClientNameException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidClientNameException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,86 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the client's private hash is invalid
/// and cannot be identified as a sha256.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidClientPrivateHashException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidClientPrivateHash"/> error code
/// will be returned because the client's private hash is invalid
/// and cannot be identified as a sha256.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidClientPrivateHash;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of
/// <see cref="InvalidClientPrivateHashException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidClientPrivateHashException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the client's public hash is invalid
/// and cannot be identified as a sha256.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidClientPublicHashException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidClientPublicHash"/> error code
/// will be returned because the client's public hash is invalid
/// and cannot be identified as a sha256.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidClientPublicHash;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InvalidClientPublicHashException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidClientPublicHashException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,87 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the First Name provided contains
/// invalid characters and or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidFirstNameException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidFirstName"/> error code
/// will be returned because the First Name provided contains
/// invalid characters and or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidFirstName;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InvalidFirstNameException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidFirstNameException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,87 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the Last Name provided contains
/// invalid characters and or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidLastNameException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidLastName"/> error code
/// will be returned because the Last Name provided contains
/// invalid characters and or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidLastName;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InvalidLastNameException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidLastNameException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the given password is invalid and/or
/// insecure and does not meet the specification.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidPasswordException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidPassword"/> error code
/// will be returned because the given password is invalid and/or
/// insecure and does not meet the specification.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidPassword;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InvalidPasswordException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidPasswordException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the client provide an invalid
/// peer identification as input.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidPeerInputException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidPeerInput"/> error code
/// will be returned because the client provided an invalid
/// peer identification as input.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidPeerInput;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InvalidPeerInputException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidPeerInputException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,87 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the platform name contains invalid
/// characters or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidPlatformException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidPlatform"/> error code
/// will be returned because the platform name contains invalid
/// characters or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidPlatform;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InvalidPlatformException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidPlatformException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,87 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the post contains invalid
/// characters or is too long;
/// please see the exception message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidPostTextException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidPostText"/> error code
/// will be returned because the post contains invalid characters
/// or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidPostText;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InvalidPostTextException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidPostTextException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,88 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the session identification
/// object is invalid;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidSessionIdentificationException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidSessionIdentification"/>
/// error code will be returned because the session identification
/// object is invalid;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidSessionIdentification;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of
/// <see cref="InvalidSessionIdentificationException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidSessionIdentificationException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the given username is invalid
/// and does not meet the specification.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidUsernameException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidUsername"/> error code
/// will be returned because the given username is invalid and
/// does not meet the specifications.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidUsername;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InvalidUsernameException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidUsernameException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,85 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the given username is invalid
/// and does not meet the specification.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class InvalidVersionException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidVersion"/> error code
/// will be returned because the version is invalid or is too long;
/// please see the message for further details.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidVersion;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="InvalidVersionException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal InvalidVersionException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

View File

@ -1,21 +0,0 @@
# Validation Errors
These are errors raised when your client passes on parameters or data
that is invalid in some way or another.
| Name | Code | Hex Code | Deprecated | Versions | Description |
|------------------------------|------|----------|------------|----------|-------------------------------------------------------------------------------------------------------------|
| InvalidUsername | 8448 | 0x02100 | No | 1.0 | The given username is invalid and does not meet the specification |
| InvalidPassword | 8449 | 0x02101 | No | 1.0 | The given password is invalid and/or insecure and does not meet the specification |
| InvalidFirstName | 8450 | 0x02102 | No | 1.0 | The First Name provided contains invalid characters and or is too long, see the message for further details |
| InvalidLastName | 8451 | 0x02103 | No | 1.0 | The Last Name provided contains invalid characters and or is too long, see the message for further details |
| InvalidBiography | 8452 | 0x02104 | No | 1.0 | The Biography is too long or contains invalid characters, see the message for further details |
| UsernameAlreadyExists | 8453 | 0x02105 | No | 1.0 | The username is already registered in the network and cannot be used |
| InvalidPeerInput | 8454 | 0x02106 | No | 1.0 | The client provided an invalid peer identification as input |
| InvalidPostText | 8455 | 0x02107 | No | 1.0 | The post contains invalid characters or is too long, see the message for further details |
| InvalidClientPublicHash | 8456 | 0x02108 | No | 1.0 | The client's public hash is invalid and cannot be identified as a sha256 |
| InvalidClientPrivateHash | 8457 | 0x02109 | No | 1.0 | The client's private hash is invalid and cannot be identified as a sha256 |
| InvalidPlatform | 8464 | 0x02110 | No | 1.0 | The platform name contains invalid characters or is too long, see the message for further details |
| InvalidVersion | 8459 | 0x0210b | No | 1.0 | The version is invalid or is too long, see the message for further details |
| InvalidClientName | 8460 | 0x0210c | No | 1.0 | The client name contains invalid characters or is too long, see the message for further details |
| InvalidSessionIdentification | 8461 | 0x0210d | No | 1.0 | The session identification object is invalid, see the message for further details |

View File

@ -1,86 +0,0 @@
/*
* This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
* Copyright (c) 2021 SocialVoid.NET Authors.
*
* This library 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, version 3.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code of library.
* If not, see <http://www.gnu.org/licenses/>.
*/
namespace SocialVoid.Errors.ValidationErrors
{
/// <summary>
/// This exception will be raised when the given username is invalid
/// and does not meet the specification.
/// <code> Since: v0.0.0 </code>
/// </summary>
public sealed class UsernameAlreadyExistsException : GeneralException
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
/// <summary>
/// The <see cref="ErrorCodes.InvalidUsername"/> error code
/// will be returned
/// because the given username is invalid and
/// does not meet the specifications.
/// <code> Since: v0.0.0 </code>
/// </summary>
public override ErrorCodes ErrorCode
{
get
{
return ErrorCodes.InvalidUsername;
}
}
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
/// <summary>
/// Creates a new instance of <see cref="UsernameAlreadyExistsException"/>.
/// <code> Since: v0.0.0 </code>
/// </summary>
internal UsernameAlreadyExistsException(string message) : base(message)
{
;
}
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 KiB

View File

@ -1,10 +0,0 @@
namespace SocialVoid.Methods
{
class CreateSession
{
public static bool Do(string public_hash, string private_hash, string platform, string version)
{
return true;
}
}
}

View File

@ -1,160 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<!--
This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
Copyright (c) 2021 SocialVoid.NET Authors.
This library 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, version 3.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this source code of library.
If not, see <http://www.gnu.org/licenses/>.
-->
<!--===================================================-->
<PropertyGroup>
<!--
<RuntimeIdentifier Condition="'$(OS)' == 'unix'">linux-x64</RuntimeIdentifier>
<RuntimeIdentifier Condition="'$(OS)' == 'Windows_NT'">win-x64</RuntimeIdentifier>
-->
<AssemblyName>SocialVoid</AssemblyName>
<RootNamespace>SocialVoid</RootNamespace>
<description>The official Socialvoid RPC Library written for C#</description>
<NeutralLanguage>en-US</NeutralLanguage>
<!--
<TargetFramework Condition="'$(OS)' == 'Windows_NT'">net5.0;net461;netstandard2.0;netstandard2.1;uap10.0;monoandroid9.0;xamarin.ios10</TargetFramework>
<TargetFramework Condition="'$(OS)' == 'unix'">net5.0</TargetFramework>
-->
<TargetFramework>net5.0</TargetFramework>
<PackageId>SovialVoid</PackageId>
<Version>0.0.1</Version>
<Authors>SocialVoid Team</Authors>
<PackageProjectUrl>https://github.com/intellivoid/Socialvoid.NET</PackageProjectUrl>
<RepositoryUrl>https://github.com/intellivoid/Socialvoid.NET</RepositoryUrl>
<PackageIconUrl>https://github.com/intellivoid/Socialvoid.NET/raw/master/SocialVoid/Icon.ico</PackageIconUrl>
<PackageIcon>Icon.png</PackageIcon>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<license>LICENSE</license>
</PropertyGroup>
<!--===================================================-->
<PropertyGroup>
<NoWarn>1701;1702;1705</NoWarn>
</PropertyGroup>
<!--===================================================-->
<PropertyGroup>
<!--
define the __LINUX__ and __WINDOWS__ constants in order to use it in the
code as:
#if __LINUX__
....
#elif __WINDOWS__
...
#endif
===================================================================
please don't undefine this constant.
-->
<DefineConstants Condition="'$(OS)' == 'unix'">$(DefineConstants);__LINUX__</DefineConstants>
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">$(DefineConstants);__WINDOWS__</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)' == 'uap10.0'">$(DefineConstants);__UAP__</DefineConstants>
<DefineConstants Condition="$(TargetFramework.StartsWith('monoandroid'))">$(DefineConstants);__ANDROID__</DefineConstants>
<DefineConstants Condition="$(TargetFramework.StartsWith('xamarin.ios'))">$(DefineConstants);__IOS__</DefineConstants>
</PropertyGroup>
<!--===================================================-->
<ItemGroup>
<None Include="Icon.png" Pack="true" PackagePath="\" />
<None Include="..\LICENSE" Pack="true" PackagePath="\" />
</ItemGroup>
<!--===================================================-->
<ItemGroup>
<EmbeddedResource Include="Icon.ico" />
</ItemGroup>
<!--===================================================-->
<ItemGroup>
<!--
All package references must be added here.
example:
<PackageReference Include="SharpDX" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
<PackageReference Include="SharpDX.Direct3D9" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
<PackageReference Include="SharpDX.DXGI" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
<PackageReference Include="SharpDX.Mathematics" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
<PackageReference Include="SharpDX.MediaFoundation" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
<PackageReference Include="SharpDX.XAudio2" Version="4.2.0" Condition="'$(OS)' == 'Windows_NT'" />
<PackageReference Include="TextCopy" Version="4.3.1" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
<PackageReference Include="FontStashSharp.MonoGame" Version="0.9.5" />
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641" />
-->
</ItemGroup>
<!--===================================================-->
<!--
If you want to remove something, add it in this section.
example:
<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
<None Remove="Controls\Music\MusicManager.resx"/>
</ItemGroup>
-->
<!--===================================================-->
<!--
All of the library includes must be added here.
example:
<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
<Content Include="..\natives\libgdiplus.so">
<Link>libgdiplus.so</Link>
<PackagePath>runtimes\linux-x64\native</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\natives\libgdiplus.so.0">
<Link>libgdiplus.so.0</Link>
<PackagePath>runtimes\linux-x64\native</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\natives\libgdiplus.so.0.0.0">
<Link>libgdiplus.so.0.0.0</Link>
<PackagePath>runtimes\linux-x64\native</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
-->
<!--===================================================-->
<ItemGroup>
<!--Include the project folders here.-->
<!--
<Folder Include="GUIContent\bin\DesktopGL\Content">
<Link>GUIContent\bin\DesktopGL\Content</Link>
</Folder>
<Folder Include="Controls\Animation\AnimationCompanies" />
<Folder Include="Controls\GameGraphics\XDrawing" />
-->
</ItemGroup>
<!--===================================================-->
<!--
<ItemGroup>
<!Include another project .csproj file here.>
<!If you include them here, they will be built as well.>
<ProjectReference Include="..\WotoProvider\WotoProvider.csproj" />
</ItemGroup>
-->
<!--===================================================-->
</Project>
<!--End of the SocialVoid.NET Project File.-->
<!--2021 (C) Intellivoid Inc. -->
<!--2021 (C) SocialVoid Team -->

View File

@ -1,8 +1,8 @@
using System;
using SocialVoid.Errors;
using SocialVoid.Errors.ServerErrors;
using SocialVoid.Errors.NetworkErrors;
using SocialVoid.Errors.ValidationErrors;
using Socialvoid.Errors;
using Socialvoid.Errors.ServerErrors;
using Socialvoid.Errors.NetworkErrors;
using Socialvoid.Errors.ValidationErrors;
using NUnit.Framework;

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<!--
This file is part of SocialVoid.NET Project (https://github.com/Intellivoid/SocialVoid.NET).
Copyright (c) 2021 SocialVoid.NET Authors.
This file is part of Socialvoid.NET Project (https://github.com/Intellivoid/Socialvoid.NET).
Copyright (c) 2021 Socialvoid.NET Authors.
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -76,8 +76,8 @@
<!--
-->
<ProjectReference Include="..\SocialVoid\SocialVoid.csproj" />
<!--SocialVoid/SocialVoid.csproj-->
<ProjectReference Include="..\Socialvoid\Socialvoid.csproj" />
<!--Socialvoid/Socialvoid.csproj-->
</ItemGroup>
<!--