File tree 5 files changed +10
-5
lines changed
5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 7
7
use Interop \Queue \Destination ;
8
8
use Interop \Queue \Exception \InvalidDestinationException ;
9
9
use Interop \Queue \Exception \InvalidMessageException ;
10
+ use Interop \Queue \Exception \PriorityNotSupportedException ;
10
11
use Interop \Queue \Message ;
11
12
use Interop \Queue \Producer ;
12
13
@@ -59,7 +60,7 @@ public function setPriority(int $priority = null): Producer
59
60
return $ this ;
60
61
}
61
62
62
- throw new \ LogicException ( ' Not implemented ' );
63
+ throw PriorityNotSupportedException:: providerDoestNotSupportIt ( );
63
64
}
64
65
65
66
public function getPriority (): ?int
Original file line number Diff line number Diff line change 7
7
use Interop \Queue \Destination ;
8
8
use Interop \Queue \Exception \InvalidDestinationException ;
9
9
use Interop \Queue \Exception \InvalidMessageException ;
10
+ use Interop \Queue \Exception \PriorityNotSupportedException ;
10
11
use Interop \Queue \Message ;
11
12
use Interop \Queue \Producer ;
12
13
use Pheanstalk \Pheanstalk ;
@@ -75,7 +76,7 @@ public function setPriority(int $priority = null): Producer
75
76
return $ this ;
76
77
}
77
78
78
- throw new \ LogicException ( ' Not implemented ' );
79
+ throw PriorityNotSupportedException:: providerDoestNotSupportIt ( );
79
80
}
80
81
81
82
public function getPriority (): ?int
Original file line number Diff line number Diff line change 7
7
use Interop \Queue \Destination ;
8
8
use Interop \Queue \Exception \InvalidDestinationException ;
9
9
use Interop \Queue \Exception \InvalidMessageException ;
10
+ use Interop \Queue \Exception \PriorityNotSupportedException ;
10
11
use Interop \Queue \Message ;
11
12
use Interop \Queue \Producer ;
12
13
use RdKafka \Producer as VendorProducer ;
@@ -70,7 +71,7 @@ public function setPriority(int $priority = null): Producer
70
71
return $ this ;
71
72
}
72
73
73
- throw new \ LogicException ( ' Not implemented ' );
74
+ throw PriorityNotSupportedException:: providerDoestNotSupportIt ( );
74
75
}
75
76
76
77
public function getPriority (): ?int
Original file line number Diff line number Diff line change 7
7
use Interop \Queue \Destination ;
8
8
use Interop \Queue \Exception \InvalidDestinationException ;
9
9
use Interop \Queue \Exception \InvalidMessageException ;
10
+ use Interop \Queue \Exception \PriorityNotSupportedException ;
10
11
use Interop \Queue \Message ;
11
12
use Interop \Queue \Producer ;
12
13
use Ramsey \Uuid \Uuid ;
@@ -94,7 +95,7 @@ public function setPriority(int $priority = null): Producer
94
95
return $ this ;
95
96
}
96
97
97
- throw new \ LogicException ( ' Not implemented ' );
98
+ throw PriorityNotSupportedException:: providerDoestNotSupportIt ( );
98
99
}
99
100
100
101
public function getPriority (): ?int
Original file line number Diff line number Diff line change 7
7
use Interop \Queue \Destination ;
8
8
use Interop \Queue \Exception \InvalidDestinationException ;
9
9
use Interop \Queue \Exception \InvalidMessageException ;
10
+ use Interop \Queue \Exception \PriorityNotSupportedException ;
10
11
use Interop \Queue \Message ;
11
12
use Interop \Queue \Producer ;
12
13
use Stomp \Client ;
@@ -64,7 +65,7 @@ public function setPriority(int $priority = null): Producer
64
65
return $ this ;
65
66
}
66
67
67
- throw new \ LogicException ( ' Not implemented ' );
68
+ throw PriorityNotSupportedException:: providerDoestNotSupportIt ( );
68
69
}
69
70
70
71
public function getPriority (): ?int
You can’t perform that action at this time.
0 commit comments