Skip to content

Commit 766bd54

Browse files
committed
Move error handling code to error/ directory
1 parent e4950fd commit 766bd54

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
ProcessedApolloError,
99
ServerError,
1010
UnauthorizedError,
11-
} from './types';
11+
} from '../types';
1212

1313
export function isApolloError(error: ApolloError | any): error is ApolloError {
1414
return error.graphQLErrors !== undefined;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
ApolloErrorHandlerResult,
55
ApolloOperationContext,
66
ApolloOperationErrorHandlerFunction,
7-
} from './types';
7+
} from '../types';
88
import { Vue } from 'vue/types/vue';
99

1010
/**

src/error/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
* @file Automatically generated by barrelsby.
3+
*/
4+
5+
export * from './ApolloErrorProcessor';
6+
export * from './handleApolloError';

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
* @file Automatically generated by barrelsby.
33
*/
44

5-
export * from './ApolloErrorProcessor';
6-
export * from './handleApolloError';
75
export * from './mutation';
86
export * from './query';
97
export * from './subscription';
108
export * from './types';
119
export * from './decorator/index';
10+
export * from './error/index';

0 commit comments

Comments
 (0)