doc: mention throw/try/catch in the Option section, so people can find it easier
							parent
							
								
									d44fe50953
								
							
						
					
					
						commit
						2ea187fb85
					
				|  | @ -1391,6 +1391,7 @@ If you don't need to return an error message, you can simply `return none` (this | |||
| 
 | ||||
| This is the primary mechanism for error handling in V. They are still values, like in Go, | ||||
| but the advantage is that errors can't be unhandled, and handling them is a lot less verbose. | ||||
| Unlike other languages, V does not handle exceptions with `throw/try/catch` blocks. | ||||
| 
 | ||||
| `err` is defined inside an `or` block and is set to the string message passed | ||||
| to the `error()` function. `err` is empty if `none` was returned. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue