DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | Static Private Member Functions | List of all members
Deveel.Data.Security.MissingPrivilegesException Class Reference
Inheritance diagram for Deveel.Data.Security.MissingPrivilegesException:
Deveel.Data.Security.SecurityException Deveel.Data.Diagnostics.ErrorException

Public Member Functions

 MissingPrivilegesException (string userName, ObjectName objectName)
 
 MissingPrivilegesException (string userName, ObjectName objectName, Privileges privileges)
 
 MissingPrivilegesException (string userName, ObjectName objectName, string message)
 
 MissingPrivilegesException (string userName, ObjectName objectName, Privileges privileges, string message)
 
- Public Member Functions inherited from Deveel.Data.Security.SecurityException
 SecurityException ()
 
 SecurityException (int errorCode)
 
 SecurityException (string message)
 
 SecurityException (int errorCode, string message)
 
 SecurityException (string message, Exception innerException)
 
 SecurityException (int errorCode, string message, Exception innerException)
 
- Public Member Functions inherited from Deveel.Data.Diagnostics.ErrorException
 ErrorException (int errorCode)
 
 ErrorException (int errorCode, string message)
 
 ErrorException ()
 
 ErrorException (string message)
 
 ErrorException (string message, Exception innerException)
 
 ErrorException (int errorCode, string message, Exception innerException)
 
ErrorEvent AsEvent (IEventSource source)
 Transforms the error to an event to be passed to the diagnostics, given a source where this was generated. More...
 

Properties

string UserName [get, private set]
 
ObjectName ObjectName [get, private set]
 
Privileges Privileges [get, private set]
 
- Properties inherited from Deveel.Data.Diagnostics.ErrorException
int ErrorCode [get, private set]
 Gets a numeric value representing the code of the error catched by this exception. More...
 
virtual ErrorLevel ErrorLevel [get]
 Gets the error level of this exception. More...
 

Static Private Member Functions

static string MakeMessage (string userName, ObjectName objectName, Privileges privileges)
 

Detailed Description

Definition at line 22 of file MissingPrivilegesException.cs.

Constructor & Destructor Documentation

Deveel.Data.Security.MissingPrivilegesException.MissingPrivilegesException ( string  userName,
ObjectName  objectName 
)
inline

Definition at line 23 of file MissingPrivilegesException.cs.

24  : this(userName, objectName, Privileges.None) {
25  }
Deveel.Data.Security.MissingPrivilegesException.MissingPrivilegesException ( string  userName,
ObjectName  objectName,
Privileges  privileges 
)
inline

Definition at line 27 of file MissingPrivilegesException.cs.

28  : this(userName, objectName, privileges, MakeMessage(userName, objectName, privileges)) {
29  }
static string MakeMessage(string userName, ObjectName objectName, Privileges privileges)
Deveel.Data.Security.MissingPrivilegesException.MissingPrivilegesException ( string  userName,
ObjectName  objectName,
string  message 
)
inline

Definition at line 31 of file MissingPrivilegesException.cs.

32  : this(userName, objectName, Privileges.None, message) {
33  }
Deveel.Data.Security.MissingPrivilegesException.MissingPrivilegesException ( string  userName,
ObjectName  objectName,
Privileges  privileges,
string  message 
)
inline

Definition at line 35 of file MissingPrivilegesException.cs.

36  : base(SecurityErrorCodes.MissingPrivileges, message) {
37  UserName = userName;
38  ObjectName = objectName;
39  Privileges = privileges;
40  }
Describes the name of an object within a database.
Definition: ObjectName.cs:44

Member Function Documentation

static string Deveel.Data.Security.MissingPrivilegesException.MakeMessage ( string  userName,
ObjectName  objectName,
Privileges  privileges 
)
inlinestaticprivate

Definition at line 48 of file MissingPrivilegesException.cs.

48  {
49  if (privileges == Privileges.None)
50  return String.Format("User '{0}' has not enough privileges to operate on the object '{1}'.", userName, objectName);
51 
52  return String.Format("User '{0}' has not the privilege '{1}' on the object '{2}'.", userName, privileges, objectName);
53  }
A long string in the system.

Property Documentation

ObjectName Deveel.Data.Security.MissingPrivilegesException.ObjectName
getprivate set

Definition at line 44 of file MissingPrivilegesException.cs.

Privileges Deveel.Data.Security.MissingPrivilegesException.Privileges
getprivate set

Definition at line 46 of file MissingPrivilegesException.cs.

string Deveel.Data.Security.MissingPrivilegesException.UserName
getprivate set

Definition at line 42 of file MissingPrivilegesException.cs.


The documentation for this class was generated from the following file: