@@ -146,23 +146,23 @@ protected void ensureContext(ApiKeyLevel callLevel) throws PermitContextError, I
146146
147147 // verify context matches requested call level
148148 if (callLevel == ApiKeyLevel .PROJECT_LEVEL_API_KEY && this .config .getContext ().getProject () == null ) {
149- throw new PermitContextError ("""
150- You're trying to use an SDK method that's specific to a project,
151- but you haven't set the current project in your client's context yet,
152- or you are using an organization level API key.
153- Please set the context to a specific
154- project using `permit.set_context()` method.
155- """ );
149+ throw new PermitContextError (
150+ " You're trying to use an SDK method that's specific to a project," +
151+ " but you haven't set the current project in your client's context yet," +
152+ " or you are using an organization level API key." +
153+ " Please set the context to a specific" +
154+ " project using `permit.set_context()` method."
155+ );
156156 }
157157
158158 if (callLevel == ApiKeyLevel .ENVIRONMENT_LEVEL_API_KEY && this .config .getContext ().getEnvironment () == null ) {
159- throw new PermitContextError ("""
160- You're trying to use an SDK method that's specific to an environment,
161- but you haven't set the current environment in your client's context yet,
162- or you are using an organization/project level API key.
163- Please set the context to a specific
164- environment using `permit.set_context()` method.
165- """ );
159+ throw new PermitContextError (
160+ " You're trying to use an SDK method that's specific to an environment," +
161+ " but you haven't set the current environment in your client's context yet," +
162+ " or you are using an organization/project level API key." +
163+ " Please set the context to a specific" +
164+ " environment using `permit.set_context()` method."
165+ );
166166 }
167167 }
168168}
0 commit comments