Skip to content

Commit 0bb9850

Browse files
committed
refactor: move exceptions to top level file
1 parent 5c383fd commit 0bb9850

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ export { defineConfig } from './src/define_config.js'
1818
export { RouteResource } from './src/router/resource.js'
1919
export { BriskRoute } from './src/router/brisk.js'
2020
export { HttpContext } from './src/http_context/main.js'
21-
export * as errors from './src/exceptions/main.js'
21+
export * as errors from './src/exceptions.js'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
import { createError, Exception } from '@poppinss/utils'
11-
import type { HttpContext } from '../http_context/main.js'
11+
import type { HttpContext } from './http_context/main.js'
1212

1313
export const E_ROUTE_NOT_FOUND = createError<[method: string, url: string]>(
1414
'Cannot %s:%s',

src/response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { Redirect } from './redirect.js'
2828
import type { Router } from './router/main.js'
2929
import type { HttpContext } from './http_context/main.js'
3030
import { CookieSerializer } from './cookies/serializer.js'
31-
import { E_HTTP_REQUEST_ABORTED } from './exceptions/main.js'
31+
import { E_HTTP_REQUEST_ABORTED } from './exceptions.js'
3232
import type {
3333
CastableHeader,
3434
CookieOptions,

src/router/lookup_store/route_finder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
import * as errors from '../../exceptions/main.js'
10+
import * as errors from '../../exceptions.js'
1111
import type { RouteJSON } from '../../types/route.js'
1212

1313
/**

src/server/factories/final_handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import type { ContainerResolver } from '@adonisjs/fold'
1111

12-
import * as errors from '../../exceptions/main.js'
12+
import * as errors from '../../exceptions.js'
1313
import type { Router } from '../../router/main.js'
1414
import type { HttpContext } from '../../http_context/main.js'
1515

tests/exceptions/http_exception.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
import { test } from '@japa/runner'
11-
import { E_HTTP_EXCEPTION } from '../../src/exceptions/main.js'
11+
import { E_HTTP_EXCEPTION } from '../../src/exceptions.js'
1212

1313
test.group('Http exception', () => {
1414
test('create http exception with an error object', ({ assert }) => {

0 commit comments

Comments
 (0)