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.InvalidAccessException Class Reference
Inheritance diagram for Deveel.Data.Security.InvalidAccessException:
Deveel.Data.Security.SecurityException Deveel.Data.Diagnostics.ErrorException

Public Member Functions

 InvalidAccessException (string userName, ObjectName objectName)
 
 InvalidAccessException (string userName, ObjectName objectName, 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]
 
- 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 BuildMessage (ObjectName objectName)
 

Detailed Description

Definition at line 22 of file InvalidAccessException.cs.

Constructor & Destructor Documentation

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

Definition at line 23 of file InvalidAccessException.cs.

24  : this(userName, objectName, BuildMessage(objectName)) {
25  }
static string BuildMessage(ObjectName objectName)
Deveel.Data.Security.InvalidAccessException.InvalidAccessException ( string  userName,
ObjectName  objectName,
string  message 
)
inline

Definition at line 27 of file InvalidAccessException.cs.

28  : base(SecurityErrorCodes.InvalidAccess, message) {
29  UserName = userName;
30  ObjectName = objectName;
31  }
Describes the name of an object within a database.
Definition: ObjectName.cs:44

Member Function Documentation

static string Deveel.Data.Security.InvalidAccessException.BuildMessage ( ObjectName  objectName)
inlinestaticprivate

Definition at line 37 of file InvalidAccessException.cs.

37  {
38  if (objectName == null)
39  return "Cannot access the object: possibly not enough privileges.";
40 
41  return String.Format("Cannot access the '{0}': possibly not enough privileges.", objectName);
42  }
A long string in the system.

Property Documentation

ObjectName Deveel.Data.Security.InvalidAccessException.ObjectName
getprivate set

Definition at line 35 of file InvalidAccessException.cs.

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

Definition at line 33 of file InvalidAccessException.cs.


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