When I use ResourceLoader.Load to load some resources, it might throw errors and print the error messages to the console. how can I catch these errors in my c# codes to handle them properly.
ResourceLoader.load don’t return an error code, just a resource reference, what you can do is check if the resource was loaded with success doing a null check:
# I will write in gdscript because i'm not familiar with c#, but
# the logic is equal
func _ready() -> void:
var my_resource = ResourceLoader.load("path")
if my_resource:
print("Loaded without problems")
else:
print("Load failed")