Ideally not, but an error could occur if the code was written or constructed wrong and leave the user in a bad state so we should handle that somehow. Either by returning an empty string if resource_path(type) does not resolve or by throwing an error.