示例#1
0
 public void DemandSize(int count, OpCode oc)
 {
     if(this.Count < count)
     {
         throw new StackException( string.Format("not enough data on the stack to execute opcode: {0}", oc.Name));
     }
 }
示例#2
0
文件: Exception.cs 项目: bubbafat/HVM
 public OpCodeException(string msg, OpCode oc)
     : base(string.Format("OpCode Exception ({0}): {1}  -  OpCode: {2}", oc.Line, msg, oc.Name))
 {
 }
示例#3
0
文件: Exception.cs 项目: bubbafat/HVM
        public OpCodeArgumentException(int index, HVMType type, OpCode oc)
            : base(string.Format("OpCode Argument Exception ({0}): Argument {1} must be of type {2} -  OpCode: {3}", 
					oc.Line, index, type.ToString(), oc.Name))
        {
        }