Well, I ref in FIBA, and the rule on technical fouls is pretty much the same, IIRC. It's very broadly written for the purpose of wide application, and it states ...
Art. 38 Technical foul
38.1 Rules of conduct
38.1.1 The proper conduct of the game demands the full and loyal cooperation of the players and team bench personnel with the officials, table officials and commissionner, if present.
38.1.2 Each team shall do its best to secure victory, but this must be done in the spirit of sportsmanship and fair play.
38.1.3 Any deliberate or repeated non-cooperation or non-compliance with the spirit and intent of this rule shall be considered as a technical foul.
There's more, but that's the essence of it.