UNPKG
rpc-typescript
Version:
latest (0.1.0)
0.1.0
An RCP library for TypeScript
github.com/amkherad/rpc-typescript
amkherad/rpc-typescript
rpc-typescript
/
src
/
errors
/
RpcMethod.ts
12 lines
(9 loc)
•
275 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
class
RpcMethod
extends
Error
{
constructor
(
methodName
?:
string
,
message
?:
string
) {
super
(message);
this
.
name
=
typeof
methodName ===
'undefined'
?
'InvalidRpcMethod'
:
`InvalidRpcMethod(
${methodName}
)`
; } }