CreateSecurityError() 공개 정적인 메소드

public static CreateSecurityError ( string message ) : Exception
message string
리턴 System.Exception
예제 #1
0
 public static void CheckSafeLevel(RubyContext /*!*/ context, int level, string /*!*/ method)
 {
     if (level <= context.CurrentSafeLevel)
     {
         throw RubyExceptions.CreateSecurityError(String.Format("Insecure operation {0} at level {1}", method, context.CurrentSafeLevel));
     }
 }
예제 #2
0
 public static void CheckSafeLevel(RubyContext /*!*/ context, int level)
 {
     if (level <= context.CurrentSafeLevel)
     {
         throw RubyExceptions.CreateSecurityError("Insecure operation at level " + context.CurrentSafeLevel);
     }
 }