You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[core-amqp][service-bus] Prunes core-amqp public API and move ServiceBusError.reason to ServiceBusError.code (Azure#12499)
This change updates the `ServiceBusError.code` field to match what was the `ServiceBusError.reason` field.
This allows us to remove the `MessagingErrorCodes` from the public interface, which we don't see as providing value above and beyond what the `ServiceBusCodes` provides.
Copy file name to clipboardExpand all lines: sdk/core/core-amqp/CHANGELOG.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,18 @@
1
1
# Release History
2
2
3
-
## 2.0.0 (2020-11-10)
3
+
## 2.0.0 (2020-11-12)
4
4
5
5
- This release marks the general availability of the `@azure/core-amqp` version 2 package.
6
6
7
7
### Breaking changes
8
8
9
-
- Continuing our work to clean the public API surface that we started in 2.0.0-beta.1, `DataTransformer` and `DefaultDataTransformer` are no longer exported.
10
-
`dataTransformer` has been removed from `ConnectionContextBase` and `ConnectionContextBaseParameters`.
11
-
This allows us to consider other forms of implementing serializers in the future.
9
+
- Continuing our work to clean the public API surface that we started in 2.0.0-beta.1 we no longer export
10
+
11
+
-`DataTransformer` and `DefaultDataTransformer`.
12
+
`dataTransformer` has been removed from `ConnectionContextBase` and `ConnectionContextBaseParameters`.
13
+
This allows us to consider other forms of implementing serializers in the future.
14
+
-`ConditionStatusMapper` and `MessagingErrorCodes` as these are only used internally by this package.
15
+
12
16
- Previously, `ConnectionConfig.validate()` overridden entityPath if `undefined` with `String(undefined) = "undefined"`. This has been updated to retain `undefined` in the validation.
* AddressAlreadyInUseError: the address is already in use.
474
-
* ArgumentError: an incorrect argument was received.
475
-
* ArgumentOutOfRangeError: an argument has a value that is out of the admissible range.
476
-
* ConnectionForcedError: an operator intervened to close the connection for some reason.
477
-
* ConnectionRedirectError: the container is no longer available on the current connection.
478
-
* DecodeError: data could not be decoded.
479
-
* DetachForcedError: an operator intervened to detach for some reason.
480
-
* ErrantLinkError: input was received for a link that was detached with an error.
481
-
* FrameSizeTooSmallError: the peer cannot send a frame because the smallest encoding of the performative with the currently valid values would be too large to fit within a frame of the agreed maximum frame size.
482
-
* FramingError: a valid frame header cannot be formed from the incoming byte stream.
483
-
* HandleInUseError: an attach was received using a handle that is already in use for an attached link a frame (other than attach) was received referencing a handle which is not
484
-
* IllegalStateError: the peer sent a frame that is not permitted in the current state.
485
-
* InternalServerError: an internal server error occurred. You may have found a bug?
486
-
* InvalidFieldError: an invalid field was passed in a frame body, and the operation could not proceed.
487
-
* InvalidOperationError: an operation is attempted but is not allowed.
488
-
* LinkRedirectError: the address provided cannot be resolved to a terminus at the current container.
489
-
* MessageLockLostError: the lock on the message is lost.
490
-
* MessageNotFoundError: message is not found.
491
-
* MessageTooLargeError: the message sent is too large: the maximum size is 256Kb.
492
-
* MessageWaitTimeout: no new messages are received for the specified time.
493
-
* MessagingEntityAlreadyExistsError: an attempt is made to create an entity that already exists.
494
-
* MessagingEntityDisabledError: trying to access/connect to a disabled messaging entity.
495
-
* MessagingEntityNotFoundError: the messaging entity does not exist.
496
-
* NoMatchingSubscriptionError: a matching subscription is not found.
497
-
* NotImplementedError: a feature is not implemented yet but the placeholder is present.
498
-
* OperationCancelledError: server cancels the operation due to an internal issue.
499
-
* OperationTimeoutError: the service fails to respond within a given timeframe.
500
-
* PartitionNotOwnedError: an attempt is made to access a partition that is not owned by the requesting entity.
501
-
* PreconditionFailedError: a condition that should have been met in order to execute an operation was not.
502
-
* PublisherRevokedError: access to publisher has been revoked.
503
-
* QuotaExceededError: The the Azure EventHub/ServiceBus quota has been exceeded.
504
-
* ReceiverDisconnectedError: two or more instances connect to the same partition with different epoch values.
505
-
* RelayNotFoundError: relay is not found.
506
-
* ResourceDeletedError: a server entity the client is working with has been deleted.
507
-
* ResourceLockedError: the client attempted to work with a server entity to which it has no access because another client is working with it.
508
-
* SenderBusyError: the client sender does not have enough link credits to send the message.
509
-
* ServerBusyError: the server is busy. Callers should wait a while and retry the operation.
510
-
* ServiceCommunicationError: Error for signaling general communication errors related to messaging operations.
511
-
* ServiceUnavailableError: the service is unavailable. The operation should be retried.
512
-
* SessionCannotBeLockedError: the Azure ServiceBus session cannot be locked.
513
-
* SessionLockLostError: the lock on the Azure ServiceBus session is lost.
514
-
* SessionWindowViolationError: the peer violated incoming window for the session.
515
-
* StoreLockLostError: the store lock is lost.
516
-
* SystemError: a low level system error is thrown by node.js. See {@link https://nodejs.org/api/errors.html#errors_class_systemerror}.
517
-
* TransferLimitExceededError: the peer sent more message transfers than currently allowed on the link.
518
-
* UnattachedHandleError: currently in use of an attached link.
519
-
* UnauthorizedError: the connection parameters are wrong and the server refused the connection.
520
-
*/
521
-
exporttypeMessagingErrorCodes=
522
-
// Error is thrown when the address is already in use.
523
-
|"AddressAlreadyInUseError"
524
-
// Error is thrown when an incorrect argument was received.
525
-
|"ArgumentError"
526
-
// Error is thrown when an argument has a value that is out of the admissible range.
527
-
|"ArgumentOutOfRangeError"
528
-
// Error is thrown when an operator intervened to close the connection for some reason.
529
-
|"ConnectionForcedError"
530
-
// Error is thrown when the container is no longer available on the current connection.
531
-
|"ConnectionRedirectError"
532
-
// Error is thrown when data could not be decoded.
533
-
|"DecodeError"
534
-
// Error is thrown when an operator intervened to detach for some reason.
535
-
|"DetachForcedError"
536
-
// Error is thrown when input was received for a link that was detached with an error.
537
-
|"ErrantLinkError"
538
-
// Error is thrown when the peer cannot send a frame because the smallest encoding of
539
-
// the performative with the currently valid values would be too large to fit within
540
-
// a frame of the agreed maximum frame size.
541
-
|"FrameSizeTooSmallError"
542
-
// Error is thrown when a valid frame header cannot be formed from the incoming byte stream.
543
-
|"FramingError"
544
-
// Error is thrown when an attach was received using a handle that is already in use for an attached link.
545
-
|"HandleInUseError"
546
-
// Error is thrown when the peer sent a frame that is not permitted in the current state.
547
-
|"IllegalStateError"
548
-
// Error is thrown when an internal server error occurred. You may have found a bug?
549
-
|"InternalServerError"
550
-
// Error is thrown when an invalid field was passed in a frame body, and the operation could not proceed.
551
-
|"InvalidFieldError"
552
-
// Error is thrown when an operation is attempted but is not allowed.
553
-
|"InvalidOperationError"
554
-
// Error is thrown when the address provided cannot be resolved to a terminus at the current container.
555
-
|"LinkRedirectError"
556
-
// Error is thrown when the lock on the message is lost.
557
-
|"MessageLockLostError"
558
-
// Error is thrown when message is not found.
559
-
|"MessageNotFoundError"
560
-
// Error is thrown when the message sent is too large: the maximum size is 256Kb.
561
-
|"MessageTooLargeError"
562
-
// Error is thrown when no new messages are received for the specified time.
563
-
|"MessageWaitTimeout"
564
-
// Error is thrown when an attempt is made to create an entity that already exists.
565
-
|"MessagingEntityAlreadyExistsError"
566
-
// Error is thrown when trying to access/connect to a disabled messaging entity.
567
-
|"MessagingEntityDisabledError"
568
-
// the messaging entity does not exist.
569
-
|"MessagingEntityNotFoundError"
570
-
// Error is thrown when a matching subscription is not found.
571
-
|"NoMatchingSubscriptionError"
572
-
// Error is thrown when a feature is not implemented yet but the placeholder is present.
573
-
|"NotImplementedError"
574
-
// Error is thrown when server cancels the operation due to an internal issue.
575
-
|"OperationCancelledError"
576
-
// the service fails to respond within a given timeframe.
577
-
|"OperationTimeoutError"
578
-
// Error is thrown when an attempt is made to access a partition that is not owned by the
579
-
// requesting entity.
580
-
|"PartitionNotOwnedError"
581
-
// Error is thrown when a condition that should have been met in order to execute an operation was not.
582
-
|"PreconditionFailedError"
583
-
// Error is thrown when access to publisher has been revoked.
584
-
|"PublisherRevokedError"
585
-
// Error is thrown the the Azure EventHub/ServiceBus quota has been exceeded.
586
-
// Quotas are reset periodically, this operation will have to wait until then.
587
-
// The messaging entity has reached its maximum allowable size.
588
-
// This can happen if the maximum number of receivers (which is 5) has already
589
-
// been opened on a per-consumer group level.
590
-
|"QuotaExceededError"
591
-
// Error is thrown when two or more instances connect to the same partition
592
-
// with different epoch values.
593
-
|"ReceiverDisconnectedError"
594
-
// Error is thrown when relay is not found.
595
-
|"RelayNotFoundError"
596
-
// Error is thrown when a server entity the client is working with has been deleted.
597
-
|"ResourceDeletedError"
598
-
// Error is thrown when the client attempted to work with a server entity to which it
599
-
// has no access because another client is working with it.
600
-
|"ResourceLockedError"
601
-
// Error is thrown when the client sender does not have enough link credits to send the message.
602
-
|"SenderBusyError"
603
-
// Error is thrown when the server is busy. Callers should wait a while and retry the operation.
604
-
|"ServerBusyError"
605
-
// Error for signaling general communication errors related to messaging operations.
606
-
|"ServiceCommunicationError"
607
-
// Error is thrown when the service is unavailable. The operation should be retried.
608
-
|"ServiceUnavailableError"
609
-
// Error is thrown when the Azure ServiceBus session cannot be locked.
610
-
|"SessionCannotBeLockedError"
611
-
// Error is thrown when the lock on the Azure ServiceBus session is lost.
612
-
|"SessionLockLostError"
613
-
// Error is thrown when the peer violated incoming window for the session.
614
-
|"SessionWindowViolationError"
615
-
// Error is thrown when the store lock is lost.
616
-
|"StoreLockLostError"
617
-
// Error is thrown when a low level system error is thrown by node.js.
Copy file name to clipboardExpand all lines: sdk/servicebus/service-bus/CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
## 7.0.0 (Unreleased)
4
4
5
+
### Breaking changes
6
+
7
+
- The `ServiceBusError.reason` field has been renamed `ServiceBusError.code`.
8
+
The `code` field can be used to differentiate what caused a `ServiceBusError` to be thrown.
5
9
- Numbers passed in `applicationProperties` of the correlation rule filter and `sqlParameters` under SQLRuleFilter will now be serialized as "double"(used to be "int") while sending the requests. The "double" and "int" values in the response will now be deserialized as "number"("double" wasn't supported before).
0 commit comments