Changeset 465 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/Exception.cpp
- Timestamp:
- Mar 24, 2008, 8:05:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/Exception.cpp
r391 r465 120 120 if( isDefinedFinally ) 121 121 { 122 SetError(71,NULL,cp);122 compiler.errorMessenger.Output(71,NULL,cp); 123 123 return; 124 124 } … … 146 146 if( isDefinedFinally ) 147 147 { 148 SetError(70,NULL,cp);148 compiler.errorMessenger.Output(70,NULL,cp); 149 149 return; 150 150 } … … 173 173 if( !isDefinedFinally ) 174 174 { 175 SetError();175 compiler.errorMessenger.OutputFatalError(); 176 176 } 177 177 … … 259 259 if( tryScopes.size() == 0 ) 260 260 { 261 SetError(1,NULL,cp);261 compiler.errorMessenger.Output(1,NULL,cp); 262 262 return; 263 263 } … … 271 271 if( !typeName[0] ) 272 272 { 273 SetError(72,NULL,cp);273 compiler.errorMessenger.Output(72,NULL,cp); 274 274 } 275 275 else … … 277 277 if( !compiler.StringToType( typeName, paramType ) ) 278 278 { 279 SetError(74,typeName,cp);279 compiler.errorMessenger.Output(74,typeName,cp); 280 280 } 281 281 else … … 283 283 if( !paramType.IsObject() ) 284 284 { 285 SetError(73,typeName,cp);285 compiler.errorMessenger.Output(73,typeName,cp); 286 286 } 287 287 } … … 296 296 if( paramType.IsObject() ) 297 297 { 298 sprintf( temporary, "Dim %s = Thread.CurrentThread().__GetThrowintParamObject() As %s", varName, paramType.GetClass().GetFullName().c_str() );298 sprintf( temporary, "Dim %s = System.Threading.Thread.CurrentThread().__GetThrowintParamObject() As %s", varName, paramType.GetClass().GetFullName().c_str() ); 299 299 MakeMiddleCode( temporary ); 300 300 ChangeOpcode( temporary ); 301 301 } 302 lstrcpy( temporary, " Thread.CurrentThread().__Catched()" );302 lstrcpy( temporary, "System.Threading.Thread.CurrentThread().__Catched()" ); 303 303 MakeMiddleCode( temporary ); 304 304 ChangeOpcode( temporary ); … … 326 326 if( tryScopes.size() == 0 ) 327 327 { 328 SetError(12,"End Try",cp);328 compiler.errorMessenger.Output(12,"End Try",cp); 329 329 return; 330 330 } … … 333 333 { 334 334 // CatchもFinallyも存在しないとき 335 SetError(-108,NULL,tryScopes.back().GetSourceCodePos() );335 compiler.errorMessenger.Output(-108,NULL,tryScopes.back().GetSourceCodePos() ); 336 336 } 337 337 … … 364 364 while( tryScopes.size() > 0 ) 365 365 { 366 SetError(22, "Try", tryScopes.back().GetSourceCodePos() );366 compiler.errorMessenger.Output(22, "Try", tryScopes.back().GetSourceCodePos() ); 367 367 368 368 EndTryCommand( true ); … … 393 393 if( tryScopes.size() == 0 ) 394 394 { 395 SetError(1,NULL,cp);395 compiler.errorMessenger.Output(1,NULL,cp); 396 396 return; 397 397 } … … 424 424 if( tryScopes.size() == 0 ) 425 425 { 426 SetError(1,NULL,cp);426 compiler.errorMessenger.Output(1,NULL,cp); 427 427 return; 428 428 }
Note:
See TracChangeset
for help on using the changeset viewer.