@@ -68,7 +68,7 @@ export const fetchSignup = async (
6868 return data ;
6969 } catch ( error ) {
7070 /* istanbul ignore next */
71- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
71+ throw new Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
7272 cause : error ,
7373 } ) ;
7474 }
@@ -89,7 +89,7 @@ export const createSignups = async ({
8989 } ) ;
9090 return data ;
9191 } catch ( error ) {
92- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
92+ throw new Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
9393 cause : error ,
9494 } ) ;
9595 }
@@ -109,7 +109,7 @@ export const deleteSignup = async ({
109109 } ) ;
110110 return data ;
111111 } catch ( error ) {
112- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
112+ throw new Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
113113 cause : error ,
114114 } ) ;
115115 }
@@ -130,7 +130,7 @@ export const patchSignup = async ({
130130 } ) ;
131131 return data ;
132132 } catch ( error ) {
133- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
133+ throw new Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
134134 cause : error ,
135135 } ) ;
136136 }
@@ -151,7 +151,7 @@ export const updateSignup = async ({
151151 } ) ;
152152 return data ;
153153 } catch ( error ) {
154- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
154+ throw new Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
155155 cause : error ,
156156 } ) ;
157157 }
0 commit comments