Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Sep 27, 2024
1 parent f9f6f65 commit f51c8f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
12 changes: 0 additions & 12 deletions packages/relay-runtime/store/RelayErrorTrie.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ import type {PayloadError} from '../network/RelayNetworkTypes';
// $FlowFixMe[recursive-definition]
const SELF: Self = Symbol('$SELF');

class RelayFieldError extends Error {
constructor(message: string, errors: Array<TRelayFieldErrorForDisplay> = []) {
super(message);
this.name = 'RelayFieldError';
this.message = message;
this.errors = errors;
}
errors: Array<TRelayFieldErrorForDisplay>;
}

export opaque type Self = typeof SELF;

export type TRelayFieldErrorForDisplay = $ReadOnly<{
Expand Down Expand Up @@ -180,11 +170,9 @@ module.exports = ({
buildErrorTrie,
getNestedErrorTrieByKey,
getErrorsByKey,
RelayFieldError,
}: {
SELF: typeof SELF,
buildErrorTrie: typeof buildErrorTrie,
getNestedErrorTrieByKey: typeof getNestedErrorTrieByKey,
getErrorsByKey: typeof getErrorsByKey,
RelayFieldError: Class<RelayFieldError>,
});
4 changes: 0 additions & 4 deletions packages/relay-runtime/util/handlePotentialSnapshotErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ import type {
ErrorResponseField,
ErrorResponseFields,
IEnvironment,
MissingExpectedDataThrowEvent,
MissingRequiredFieldThrowEvent,
RelayFieldPayloadErrorEvent,
RelayResolverErrorEvent,
} from '../store/RelayStoreTypes';

const invariant = require('invariant');
Expand Down

0 comments on commit f51c8f3

Please sign in to comment.