2323import io .taliox .zulip .controller .HttpController ;
2424import io .taliox .zulip .exceptions .BadRequestException ;
2525import io .taliox .zulip .exceptions .InvalidArgumentException ;
26- import io .taliox .zulip .exceptions .NotAuthroizedException ;
26+ import io .taliox .zulip .exceptions .NotAuthorizedException ;
2727
2828public abstract class ZulipRestAPICall implements Callable {
2929
@@ -127,8 +127,8 @@ protected String performRequest(HashMap<String, String> parameters, HttpRequestB
127127 }
128128
129129 if (response .getStatusLine ().getStatusCode () == HttpStatus .SC_UNAUTHORIZED ) {
130- throw new NotAuthroizedException (
131- "Unauthroized request. Please check server settings and your provided credentials :"
130+ throw new NotAuthorizedException (
131+ "Unauthorized request. Please check server settings and your provided credentials :"
132132 + builder .toString ());
133133 }
134134
@@ -142,7 +142,7 @@ protected String performRequest(HashMap<String, String> parameters, HttpRequestB
142142 e .printStackTrace ();
143143 } catch (IOException e ) {
144144 e .printStackTrace ();
145- } catch (NotAuthroizedException e ) {
145+ } catch (NotAuthorizedException e ) {
146146 e .printStackTrace ();
147147 } catch (BadRequestException e ) {
148148 e .printStackTrace ();
@@ -174,8 +174,8 @@ private String handleHttpUpload(File file, HttpPost post) {
174174 HttpResponse response = client .execute (post );
175175
176176 if (response .getStatusLine ().getStatusCode () == HttpStatus .SC_UNAUTHORIZED ) {
177- throw new NotAuthroizedException (
178- "Unauthroized request. Please check server settings and your provided credentials :"
177+ throw new NotAuthorizedException (
178+ "Unauthorized request. Please check server settings and your provided credentials :"
179179 + response .getStatusLine ());
180180 }
181181
@@ -190,7 +190,7 @@ private String handleHttpUpload(File file, HttpPost post) {
190190 e .printStackTrace ();
191191 } catch (IOException e ) {
192192 e .printStackTrace ();
193- } catch (NotAuthroizedException e ) {
193+ } catch (NotAuthorizedException e ) {
194194 e .printStackTrace ();
195195 }
196196
0 commit comments